diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-04-23 09:12:12 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-09-02 10:25:24 +0200 |
commit | f828dce5972ee633129b97aa267870206a8057b8 (patch) | |
tree | 24a11f3aa891a1462e80533ac624d07442ff51e8 /apps/files_sharing/tests | |
parent | 12f57ada7dd8316ef205b09aa8eaaadf0fcafefc (diff) | |
download | nextcloud-server-f828dce5972ee633129b97aa267870206a8057b8.tar.gz nextcloud-server-f828dce5972ee633129b97aa267870206a8057b8.zip |
Fix sharing creation insert and get
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/ApiTest.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/ApiTest.php b/apps/files_sharing/tests/ApiTest.php index d7661297e9e..61a63ad1e19 100644 --- a/apps/files_sharing/tests/ApiTest.php +++ b/apps/files_sharing/tests/ApiTest.php @@ -959,10 +959,7 @@ class ApiTest extends TestCase { $this->assertNotNull($share1->getAttributes()); $share1 = $this->shareManager->createShare($share1); - $this->assertNull($share1->getAttributes()); $this->assertEquals(19, $share1->getPermissions()); - // attributes get cleared when empty - $this->assertNull($share1->getAttributes()); $share2 = $this->shareManager->newShare(); $share2->setNode($node1) @@ -1126,7 +1123,7 @@ class ApiTest extends TestCase { ->setSharedBy(self::TEST_FILES_SHARING_API_USER1) ->setShareType(IShare::TYPE_LINK) ->setPermissions(1); - $share2 = $this->shareManager->createShare($share1); + $share2 = $this->shareManager->createShare($share2); $ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1); $ocs->deleteShare($share1->getId()); |