dont use our now non existing hook
This commit is contained in:
parent
30ad56813a
commit
be55a90323
|
@ -54,7 +54,9 @@ class Test_Trashbin extends \Test\TestCase {
|
||||||
// clear share hooks
|
// clear share hooks
|
||||||
\OC_Hook::clear('OCP\\Share');
|
\OC_Hook::clear('OCP\\Share');
|
||||||
\OC::registerShareHooks();
|
\OC::registerShareHooks();
|
||||||
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');
|
$application = new \OCA\Files_Sharing\AppInfo\Application();
|
||||||
|
$application->registerMountProviders();
|
||||||
|
$application->setupPropagation();
|
||||||
|
|
||||||
//disable encryption
|
//disable encryption
|
||||||
\OC_App::disable('files_encryption');
|
\OC_App::disable('files_encryption');
|
||||||
|
|
|
@ -47,7 +47,9 @@ class Test_Files_Versioning extends \Test\TestCase {
|
||||||
\OC_Hook::clear('OCP\\Share');
|
\OC_Hook::clear('OCP\\Share');
|
||||||
\OC::registerShareHooks();
|
\OC::registerShareHooks();
|
||||||
\OCA\Files_Versions\Hooks::connectHooks();
|
\OCA\Files_Versions\Hooks::connectHooks();
|
||||||
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');
|
$application = new \OCA\Files_Sharing\AppInfo\Application();
|
||||||
|
$application->registerMountProviders();
|
||||||
|
$application->setupPropagation();
|
||||||
|
|
||||||
// create test user
|
// create test user
|
||||||
self::loginHelper(self::TEST_VERSIONS_USER2, true);
|
self::loginHelper(self::TEST_VERSIONS_USER2, true);
|
||||||
|
|
|
@ -25,7 +25,9 @@ class EtagTest extends \Test\TestCase {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
\OC_Hook::clear('OC_Filesystem', 'setup');
|
\OC_Hook::clear('OC_Filesystem', 'setup');
|
||||||
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');
|
$application = new \OCA\Files_Sharing\AppInfo\Application();
|
||||||
|
$application->registerMountProviders();
|
||||||
|
$application->setupPropagation();
|
||||||
\OCP\Share::registerBackend('file', 'OC_Share_Backend_File');
|
\OCP\Share::registerBackend('file', 'OC_Share_Backend_File');
|
||||||
\OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file');
|
\OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue