diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-29 22:50:30 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-30 09:51:18 +0100 |
commit | 83a75c670bb52efbee498418398f03ab12301840 (patch) | |
tree | b537da42d73ca84c430922cc6b12c47aa838ad08 /apps/files_sharing/tests/SharedStorageTest.php | |
parent | 9409968451be5e25e271ea282863cea7818bed98 (diff) | |
download | nextcloud-server-83a75c670bb52efbee498418398f03ab12301840.tar.gz nextcloud-server-83a75c670bb52efbee498418398f03ab12301840.zip |
Replace static call to Share::unshare with ShareManager->deleteShare in tests
And then cleanup all the code that is dead then...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/tests/SharedStorageTest.php')
-rw-r--r-- | apps/files_sharing/tests/SharedStorageTest.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/SharedStorageTest.php b/apps/files_sharing/tests/SharedStorageTest.php index 74975e7cf31..bd8b18f2b89 100644 --- a/apps/files_sharing/tests/SharedStorageTest.php +++ b/apps/files_sharing/tests/SharedStorageTest.php @@ -302,9 +302,7 @@ class SharedStorageTest extends TestCase { //cleanup self::loginHelper(self::TEST_FILES_SHARING_API_USER1); - $result = \OC\Share\Share::unshare('folder', $fileinfoFolder['fileid'], IShare::TYPE_USER, - self::TEST_FILES_SHARING_API_USER2); - $this->assertTrue($result); + $this->shareManager->deleteShare($share); } public function testFopenWithUpdateOnlyPermission() { |