diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/EtagTest.php | 4 | ||||
-rw-r--r-- | tests/lib/Share/ShareTest.php | 4 | ||||
-rw-r--r-- | tests/lib/TagsTest.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Files/EtagTest.php b/tests/lib/Files/EtagTest.php index 67ddd6ca514..ef7bf7cfbb7 100644 --- a/tests/lib/Files/EtagTest.php +++ b/tests/lib/Files/EtagTest.php @@ -34,8 +34,8 @@ class EtagTest extends \Test\TestCase { \OC_Hook::clear('OC_Filesystem', 'setup'); $application = new \OCA\Files_Sharing\AppInfo\Application(); $application->registerMountProviders(); - \OCP\Share::registerBackend('file', 'OCA\Files_Sharing\ShareBackend\File'); - \OCP\Share::registerBackend('folder', 'OCA\Files_Sharing\ShareBackend\Folder', 'file'); + \OC\Share\Share::registerBackend('file', 'OCA\Files_Sharing\ShareBackend\File'); + \OC\Share\Share::registerBackend('folder', 'OCA\Files_Sharing\ShareBackend\Folder', 'file'); $config = \OC::$server->getConfig(); $this->datadir = $config->getSystemValue('datadirectory'); diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php index 1dcb6f7fe2c..4f929446da0 100644 --- a/tests/lib/Share/ShareTest.php +++ b/tests/lib/Share/ShareTest.php @@ -100,7 +100,7 @@ class ShareTest extends \Test\TestCase { $this->groupAndUser_group->addUser($this->user2); $this->groupAndUser_group->addUser($this->user3); - \OCP\Share::registerBackend('test', 'Test\Share\Backend'); + \OC\Share\Share::registerBackend('test', 'Test\Share\Backend'); \OC_Hook::clear('OCP\\Share'); \OC::registerShareHooks(); $this->resharing = \OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_resharing', 'yes'); @@ -501,7 +501,7 @@ class ShareTest extends \Test\TestCase { */ public function testCheckPasswordProtectedShare($expected, $item) { \OC::$server->getSession()->set('public_link_authenticated', '100'); - $result = \OCP\Share::checkPasswordProtectedShare($item); + $result = \OC\Share\Share::checkPasswordProtectedShare($item); $this->assertEquals($expected, $result); } diff --git a/tests/lib/TagsTest.php b/tests/lib/TagsTest.php index a4b0e776959..e4f3b5206cf 100644 --- a/tests/lib/TagsTest.php +++ b/tests/lib/TagsTest.php @@ -287,7 +287,7 @@ class TagsTest extends \Test\TestCase { public function testShareTags() { $testTag = 'TestTag'; - \OCP\Share::registerBackend('test', 'Test\Share\Backend'); + \OC\Share\Share::registerBackend('test', 'Test\Share\Backend'); $tagger = $this->tagMgr->load('test'); $tagger->tagAs(1, $testTag); |