summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/ExpireSharesJobTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-15 13:57:00 +0200
committerGitHub <noreply@github.com>2017-08-15 13:57:00 +0200
commitcf7c4a4439da66055db5b43f9d6bc6e4671aa3e4 (patch)
treec78e6c65270dda98dba1cc1831821d26c921bb66 /apps/files_sharing/tests/ExpireSharesJobTest.php
parentc5f14ac884b32d749edfcfc89434333930287ae5 (diff)
parent8366dfa50b26632007462699085ef1f8c02ab880 (diff)
downloadnextcloud-server-cf7c4a4439da66055db5b43f9d6bc6e4671aa3e4.tar.gz
nextcloud-server-cf7c4a4439da66055db5b43f9d6bc6e4671aa3e4.zip
Merge pull request #6123 from nextcloud/cleanup-shareItem
Cleanup usage of shareItem in internal code base
Diffstat (limited to 'apps/files_sharing/tests/ExpireSharesJobTest.php')
-rw-r--r--apps/files_sharing/tests/ExpireSharesJobTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/ExpireSharesJobTest.php b/apps/files_sharing/tests/ExpireSharesJobTest.php
index 53180f31c56..826efc5ed80 100644
--- a/apps/files_sharing/tests/ExpireSharesJobTest.php
+++ b/apps/files_sharing/tests/ExpireSharesJobTest.php
@@ -138,7 +138,7 @@ class ExpireSharesJobTest extends \Test\TestCase {
$fileInfo = $view->getFileInfo('files/test');
$this->assertNotNull(
- \OCP\Share::shareItem('folder', $fileInfo->getId(), \OCP\Share::SHARE_TYPE_LINK, null, \OCP\Constants::PERMISSION_READ),
+ \OC\Share\Share::shareItem('folder', $fileInfo->getId(), \OCP\Share::SHARE_TYPE_LINK, null, \OCP\Constants::PERMISSION_READ),
'Failed asserting that user 1 successfully shared "test" by link.'
);
@@ -192,7 +192,7 @@ class ExpireSharesJobTest extends \Test\TestCase {
$fileInfo = $view->getFileInfo('files/test');
$this->assertNotNull(
- \OCP\Share::shareItem('folder', $fileInfo->getId(), \OCP\Share::SHARE_TYPE_USER, $this->user2, \OCP\Constants::PERMISSION_READ),
+ \OC\Share\Share::shareItem('folder', $fileInfo->getId(), \OCP\Share::SHARE_TYPE_USER, $this->user2, \OCP\Constants::PERMISSION_READ),
'Failed asserting that user 1 successfully shared "test" by link with user2.'
);