aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-30 11:11:59 +0100
committerGitHub <noreply@github.com>2020-11-30 11:11:59 +0100
commit356350ffe82d76a6e101b6e85931ec929c22d0df (patch)
treee04ecf9ad8f3ab24b6b6af0371507f6c3100e2c3 /apps
parent9be5caa9371bc2acad3d0b517d0aa069c6635c77 (diff)
parent83a75c670bb52efbee498418398f03ab12301840 (diff)
downloadnextcloud-server-356350ffe82d76a6e101b6e85931ec929c22d0df.tar.gz
nextcloud-server-356350ffe82d76a6e101b6e85931ec929c22d0df.zip
Merge pull request #24440 from nextcloud/techdebt/noid/replace-static-unshare-call-in-test-with-sharemanager
Replace static call to Share::unshare with ShareManager->deleteShare in tests
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/SharedStorageTest.php4
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() {