aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Config/UserMountCacheTest.php
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-01-12 09:15:48 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-18 13:31:24 +0100
commiteb502c02ff7693bb36318d857985f79e7bac370c (patch)
tree61a7a10839f0c3a19bf8af869af267c484b51e02 /tests/lib/Files/Config/UserMountCacheTest.php
parentd79cc8ea6ddc6f562ed0eeffc13cdbedf5df81bb (diff)
downloadnextcloud-server-eb502c02ff7693bb36318d857985f79e7bac370c.tar.gz
nextcloud-server-eb502c02ff7693bb36318d857985f79e7bac370c.zip
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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]);