aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/UpdaterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/UpdaterTest.php')
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php
index 30efbac533d..344c08bea48 100644
--- a/apps/files_sharing/tests/UpdaterTest.php
+++ b/apps/files_sharing/tests/UpdaterTest.php
@@ -31,6 +31,8 @@
namespace OCA\Files_Sharing\Tests;
+use OCA\Files_Trashbin\AppInfo\Application;
+use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\Share\IShare;
/**
@@ -77,8 +79,9 @@ class UpdaterTest extends TestCase {
$status = \OC::$server->getAppManager()->isEnabledForUser('files_trashbin');
(new \OC_App())->enable('files_trashbin');
-
- \OCA\Files_Trashbin\Trashbin::registerHooks();
+ // register trashbin hooks
+ $trashbinApp = new Application();
+ $trashbinApp->boot($this->createMock(IBootContext::class));
$fileinfo = \OC\Files\Filesystem::getFileInfo($this->folder);
$this->assertTrue($fileinfo instanceof \OC\Files\FileInfo);