Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/tests/TrashbinTest.php')
-rw-r--r--apps/files_trashbin/tests/TrashbinTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php
index 9e5b029d9dc..35a5a957186 100644
--- a/apps/files_trashbin/tests/TrashbinTest.php
+++ b/apps/files_trashbin/tests/TrashbinTest.php
@@ -28,6 +28,7 @@
*/
use OCA\Files_Trashbin\Tests;
+use OCA\Files_Sharing\AppInfo\Application;
/**
* Class Test_Encryption
@@ -67,8 +68,9 @@ class TrashbinTest extends \Test\TestCase {
// clear share hooks
\OC_Hook::clear('OCP\\Share');
\OC::registerShareHooks();
- $application = \OC::$server->query(\OCA\Files_Sharing\AppInfo\Application::class);
- $application->registerMountProviders();
+
+ // init files sharing
+ new Application();
//disable encryption
\OC::$server->getAppManager()->disableApp('encryption');