summaryrefslogtreecommitdiffstats
path: root/tests/enable_all.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-15 17:12:42 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-15 17:12:42 +0100
commit5730e05a145ac96f6e92e4e63129d018259007f5 (patch)
tree16d68f360dc535f98bb09830cd0f3a21b8716769 /tests/enable_all.php
parent7f68497b39db9528975862a091effe03fc802f91 (diff)
downloadnextcloud-server-5730e05a145ac96f6e92e4e63129d018259007f5.tar.gz
nextcloud-server-5730e05a145ac96f6e92e4e63129d018259007f5.zip
properly handle app activation for unit testing
Diffstat (limited to 'tests/enable_all.php')
-rw-r--r--tests/enable_all.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/enable_all.php b/tests/enable_all.php
index 4f2fe5cdb60..0267c4e2450 100644
--- a/tests/enable_all.php
+++ b/tests/enable_all.php
@@ -8,16 +8,16 @@
require_once __DIR__.'/../lib/base.php';
-OC_App::enable('files_sharing');
-OC_App::enable('files_encryption');
-OC_App::enable('user_ldap');
-OC_App::enable('calendar');
-OC_App::enable('contacts');
-OC_App::enable('apptemplateadvanced');
-OC_App::enable('appframework');
-#OC_App::enable('files_archive');
-#OC_App::enable('mozilla_sync');
-#OC_App::enable('news');
-#OC_App::enable('provisioning_api');
-#OC_App::enable('user_external');
+function enableApp($app) {
+ try {
+ OC_App::enable($app);
+ } catch (Exception $e) {
+ echo $e;
+ }
+}
+
+enableApp('files_sharing');
+enableApp('files_encryption');
+enableApp('files_external');
+enableApp('user_ldap');