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/DeleteOrphanedSharesJobTest.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/DeleteOrphanedSharesJobTest.php')
-rw-r--r-- | apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php index 2acd8638775..e417fdb74aa 100644 --- a/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php +++ b/apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php @@ -136,7 +136,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase { $fileId = $fileInfo->getId(); $this->assertTrue( - \OCP\Share::shareItem('folder', $fileId, \OCP\Share::SHARE_TYPE_USER, $this->user2, \OCP\Constants::PERMISSION_READ), + \OC\Share\Share::shareItem('folder', $fileId, \OCP\Share::SHARE_TYPE_USER, $this->user2, \OCP\Constants::PERMISSION_READ), 'Failed asserting that user 1 successfully shared "test/sub" with user 2.' ); @@ -159,7 +159,7 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase { \OC\Share\Share::registerBackend('test', 'Test\Share\Backend'); $this->assertTrue( - \OCP\Share::shareItem('test', 'test.txt', \OCP\Share::SHARE_TYPE_USER, $this->user2, \OCP\Constants::PERMISSION_READ), + \OC\Share\Share::shareItem('test', 'test.txt', \OCP\Share::SHARE_TYPE_USER, $this->user2, \OCP\Constants::PERMISSION_READ), 'Failed asserting that user 1 successfully shared something with user 2.' ); |