diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-15 11:57:18 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-15 11:57:18 +0200 |
commit | 8366dfa50b26632007462699085ef1f8c02ab880 (patch) | |
tree | 21b1fb3eb57b8ce463e463dc762a0f138c375497 /apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php | |
parent | c5c23b30b9f510ce211d9fa3187dc3c8cff4116e (diff) | |
download | nextcloud-server-8366dfa50b26632007462699085ef1f8c02ab880.tar.gz nextcloud-server-8366dfa50b26632007462699085ef1f8c02ab880.zip |
Cleanup usage of shareItem in internal code base
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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 6f7bef24b85..0a8d7491a95 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 { \OCP\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.' ); |