diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-15 13:57:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 13:57:00 +0200 |
commit | cf7c4a4439da66055db5b43f9d6bc6e4671aa3e4 (patch) | |
tree | c78e6c65270dda98dba1cc1831821d26c921bb66 /apps/files_sharing/tests/ExpireSharesJobTest.php | |
parent | c5f14ac884b32d749edfcfc89434333930287ae5 (diff) | |
parent | 8366dfa50b26632007462699085ef1f8c02ab880 (diff) | |
download | nextcloud-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.php | 4 |
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.' ); |