summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-02-23 18:00:12 +0100
committerRobin Appelman <robin@icewind.nl>2024-02-26 18:46:35 +0100
commitd0ebe369061027e8026b93b5083dcaadc3a25412 (patch)
tree1668a8f57e14a6b878bf4db07748e42233ae752e /apps/files_sharing
parent00c53c9e78ffca1985b4b22314af08da10a09826 (diff)
downloadnextcloud-server-d0ebe369061027e8026b93b5083dcaadc3a25412.tar.gz
nextcloud-server-d0ebe369061027e8026b93b5083dcaadc3a25412.zip
fix: remove old test-only methods
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php
index fbdfad2f9cb..98e34a272e0 100644
--- a/apps/files_sharing/tests/UpdaterTest.php
+++ b/apps/files_sharing/tests/UpdaterTest.php
@@ -99,8 +99,8 @@ class UpdaterTest extends TestCase {
// check if user2 can see the shared folder
$this->assertTrue($view->file_exists($this->folder));
- $foldersShared = \OC\Share\Share::getItemsSharedWith('folder');
- $this->assertSame(1, count($foldersShared));
+ $foldersShared = $this->shareManager->getSharesBy(self::TEST_FILES_SHARING_API_USER1, IShare::TYPE_USER);
+ $this->assertCount(1, $foldersShared);
$view->mkdir('localFolder');
$view->file_put_contents('localFolder/localFile.txt', 'local file');
@@ -116,8 +116,8 @@ class UpdaterTest extends TestCase {
$this->loginHelper(self::TEST_FILES_SHARING_API_USER2);
// shared folder should be unshared
- $foldersShared = \OC\Share\Share::getItemsSharedWith('folder');
- $this->assertTrue(empty($foldersShared));
+ $foldersShared = $this->shareManager->getSharesBy(self::TEST_FILES_SHARING_API_USER1, IShare::TYPE_USER);
+ $this->assertCount(0, $foldersShared);
// trashbin should contain the local file but not the mount point
$rootView = new \OC\Files\View('/' . self::TEST_FILES_SHARING_API_USER2);