aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-11-14 08:05:44 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-02 13:08:43 +0100
commit5cb11ca6427855f52b822d2a786e54daddc62fc9 (patch)
tree17b137c6c222a6954932a7d603de481e554b25f8 /apps/files_trashbin/tests
parent0bf6fcd6cd0ef87fc8e41f34fbc939a5f2bd9a7d (diff)
downloadnextcloud-server-5cb11ca6427855f52b822d2a786e54daddc62fc9.tar.gz
nextcloud-server-5cb11ca6427855f52b822d2a786e54daddc62fc9.zip
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_trashbin/tests')
-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');