summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-27 20:13:15 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-31 17:17:45 +0100
commit8d83e239f321ef63e08c2c1a6658449c7376c46f (patch)
tree277603816fcc000d008be6c7ac84c108300b4d9b /apps/files_sharing/tests
parent32cf661215fb3926789054a3953b465fc2665330 (diff)
downloadnextcloud-server-8d83e239f321ef63e08c2c1a6658449c7376c46f.tar.gz
nextcloud-server-8d83e239f321ef63e08c2c1a6658449c7376c46f.zip
Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/UpdaterTest.php3
1 files changed, 2 insertions, 1 deletions
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();