From 8d83e239f321ef63e08c2c1a6658449c7376c46f Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 27 Oct 2016 20:13:15 +0200 Subject: Fix tests Signed-off-by: Lukas Reschke --- apps/files_sharing/tests/UpdaterTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/files_sharing') diff --git a/apps/files_sharing/tests/UpdaterTest.php b/apps/files_sharing/tests/UpdaterTest.php index da292826f0a..bb320336d48 100644 --- a/apps/files_sharing/tests/UpdaterTest.php +++ b/apps/files_sharing/tests/UpdaterTest.php @@ -71,7 +71,8 @@ class UpdaterTest extends TestCase { */ function testDeleteParentFolder() { $status = \OC_App::isEnabled('files_trashbin'); - \OC_App::enable('files_trashbin'); + (new \OC_App())->enable('files_trashbin'); + \OCA\Files_Trashbin\Trashbin::registerHooks(); -- cgit v1.2.3