aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Config/UserMountCacheTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Config/UserMountCacheTest.php')
-rw-r--r--tests/lib/Files/Config/UserMountCacheTest.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php
index d170049aab5..4ee0f730440 100644
--- a/tests/lib/Files/Config/UserMountCacheTest.php
+++ b/tests/lib/Files/Config/UserMountCacheTest.php
@@ -107,7 +107,7 @@ class UserMountCacheTest extends TestCase {
public function testNewMounts() {
$user = $this->userManager->get('u1');
- list($storage) = $this->getStorage(10);
+ [$storage] = $this->getStorage(10);
$mount = new MountPoint($storage, '/asd/');
$this->cache->registerMounts($user, [$mount]);
@@ -127,7 +127,7 @@ class UserMountCacheTest extends TestCase {
public function testSameMounts() {
$user = $this->userManager->get('u1');
- list($storage) = $this->getStorage(10);
+ [$storage] = $this->getStorage(10);
$mount = new MountPoint($storage, '/asd/');
$this->cache->registerMounts($user, [$mount]);
@@ -151,7 +151,7 @@ class UserMountCacheTest extends TestCase {
public function testRemoveMounts() {
$user = $this->userManager->get('u1');
- list($storage) = $this->getStorage(10);
+ [$storage] = $this->getStorage(10);
$mount = new MountPoint($storage, '/asd/');
$this->cache->registerMounts($user, [$mount]);
@@ -170,7 +170,7 @@ class UserMountCacheTest extends TestCase {
public function testChangeMounts() {
$user = $this->userManager->get('u1');
- list($storage) = $this->getStorage(10);
+ [$storage] = $this->getStorage(10);
$mount = new MountPoint($storage, '/bar/');
$this->cache->registerMounts($user, [$mount]);
@@ -193,7 +193,7 @@ class UserMountCacheTest extends TestCase {
public function testChangeMountId() {
$user = $this->userManager->get('u1');
- list($storage) = $this->getStorage(10);
+ [$storage] = $this->getStorage(10);
$mount = new MountPoint($storage, '/foo/', null, null, null, null);
$this->cache->registerMounts($user, [$mount]);
@@ -218,8 +218,8 @@ class UserMountCacheTest extends TestCase {
$user2 = $this->userManager->get('u2');
$user3 = $this->userManager->get('u3');
- list($storage1, $id1) = $this->getStorage(1);
- list($storage2, $id2) = $this->getStorage(2);
+ [$storage1, $id1] = $this->getStorage(1);
+ [$storage2, $id2] = $this->getStorage(2);
$mount1 = new MountPoint($storage1, '/foo/');
$mount2 = new MountPoint($storage2, '/bar/');
@@ -252,8 +252,8 @@ class UserMountCacheTest extends TestCase {
$user1 = $this->userManager->get('u1');
$user2 = $this->userManager->get('u2');
- list($storage1, $id1) = $this->getStorage(1);
- list($storage2, $id2) = $this->getStorage(2);
+ [$storage1, $id1] = $this->getStorage(1);
+ [$storage2, $id2] = $this->getStorage(2);
$mount1 = new MountPoint($storage1, '/foo/');
$mount2 = new MountPoint($storage2, '/bar/');
@@ -282,8 +282,8 @@ class UserMountCacheTest extends TestCase {
$user1 = $this->userManager->get('u1');
$user2 = $this->userManager->get('u2');
- list($storage1, $id1) = $this->getStorage(1);
- list($storage2, $id2) = $this->getStorage(2);
+ [$storage1, $id1] = $this->getStorage(1);
+ [$storage2, $id2] = $this->getStorage(2);
$mount1 = new MountPoint($storage1, '/foo/');
$mount2 = new MountPoint($storage2, '/bar/');
@@ -346,7 +346,7 @@ class UserMountCacheTest extends TestCase {
public function testGetMountsForFileIdRootId() {
$user1 = $this->userManager->get('u1');
- list($storage1, $rootId) = $this->getStorage(2);
+ [$storage1, $rootId] = $this->getStorage(2);
$mount1 = new MountPoint($storage1, '/foo/');
$this->cache->registerMounts($user1, [$mount1]);
@@ -368,7 +368,7 @@ class UserMountCacheTest extends TestCase {
$fileId = $this->createCacheEntry('/foo/bar', 2);
- list($storage1, $rootId) = $this->getStorage(2);
+ [$storage1, $rootId] = $this->getStorage(2);
$mount1 = new MountPoint($storage1, '/foo/');
$this->cache->registerMounts($user1, [$mount1]);
@@ -390,7 +390,7 @@ class UserMountCacheTest extends TestCase {
public function testGetMountsForFileIdSubFolderMount() {
$user1 = $this->userManager->get('u1');
- list($storage1, $rootId) = $this->getStorage(2);
+ [$storage1, $rootId] = $this->getStorage(2);
$folderId = $this->createCacheEntry('/foo', 2);
$fileId = $this->createCacheEntry('/foo/bar', 2);
@@ -424,7 +424,7 @@ class UserMountCacheTest extends TestCase {
public function testGetMountsForFileIdSubFolderMountOutside() {
$user1 = $this->userManager->get('u1');
- list($storage1, $rootId) = $this->getStorage(2);
+ [$storage1, $rootId] = $this->getStorage(2);
$folderId = $this->createCacheEntry('/foo', 2);
$fileId = $this->createCacheEntry('/bar/asd', 2);
@@ -452,7 +452,7 @@ class UserMountCacheTest extends TestCase {
public function testGetMountsForFileIdDeletedUser() {
$user1 = $this->userManager->get('u1');
- list($storage1, $rootId) = $this->getStorage(2);
+ [$storage1, $rootId] = $this->getStorage(2);
$rootId = $this->createCacheEntry('', 2);
$mount1 = new MountPoint($storage1, '/foo/');
$this->cache->registerMounts($user1, [$mount1]);
@@ -469,7 +469,7 @@ class UserMountCacheTest extends TestCase {
$user2 = $this->userManager->get('u2');
/** @var Storage $storage1 */
- list($storage1, $rootId) = $this->getStorage(2);
+ [$storage1, $rootId] = $this->getStorage(2);
$folderId = $this->createCacheEntry('files', 2, 100);
$fileId = $this->createCacheEntry('files/foo', 2, 7);
$storage1->getCache()->put($folderId, ['size' => 100]);