diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-14 17:06:28 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-14 17:08:21 +0100 |
commit | c79a6b3f62948075f7ce67a0294b0410fd61af3d (patch) | |
tree | d67ee83d8c0fd892ce722b40b3f859d76ff20ebe /apps/files_sharing/tests | |
parent | 70e2217d1c23dbe7062c188091c0d9f10a5bd84b (diff) | |
download | nextcloud-server-c79a6b3f62948075f7ce67a0294b0410fd61af3d.tar.gz nextcloud-server-c79a6b3f62948075f7ce67a0294b0410fd61af3d.zip |
Fix errors from PHP 8.2 testing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/ShareTest.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/ShareTest.php b/apps/files_sharing/tests/ShareTest.php index 45c7ceb61ef..45bd5a3d707 100644 --- a/apps/files_sharing/tests/ShareTest.php +++ b/apps/files_sharing/tests/ShareTest.php @@ -39,6 +39,8 @@ class ShareTest extends TestCase { private static $tempStorage; + private string $subsubfolder = ''; + protected function setUp(): void { parent::setUp(); @@ -176,14 +178,14 @@ class ShareTest extends TestCase { $shares = $this->shareManager->getSharedWith(self::TEST_FILES_SHARING_API_USER2, IShare::TYPE_GROUP); $share = $shares[0]; - $this->assertSame('/test.txt' ,$share->getTarget()); + $this->assertSame('/test.txt', $share->getTarget()); $this->assertSame(19, $share->getPermissions()); \OC\Files\Filesystem::rename('test.txt', 'new test.txt'); $shares = $this->shareManager->getSharedWith(self::TEST_FILES_SHARING_API_USER2, IShare::TYPE_GROUP); $share = $shares[0]; - $this->assertSame('/new test.txt' ,$share->getTarget()); + $this->assertSame('/new test.txt', $share->getTarget()); $this->assertSame(19, $share->getPermissions()); $share->setPermissions(\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_UPDATE); @@ -193,7 +195,7 @@ class ShareTest extends TestCase { $shares = $this->shareManager->getSharedWith(self::TEST_FILES_SHARING_API_USER2, IShare::TYPE_GROUP); $share = $shares[0]; - $this->assertSame('/new test.txt' ,$share->getTarget()); + $this->assertSame('/new test.txt', $share->getTarget()); $this->assertSame(3, $share->getPermissions()); } |