properly handle app activation for unit testing

remotes/origin/ldap_group_count
Thomas Müller 11 years ago
parent 7f68497b39
commit 5730e05a14
  1. 24
      tests/enable_all.php

@ -8,16 +8,16 @@
require_once __DIR__.'/../lib/base.php'; require_once __DIR__.'/../lib/base.php';
OC_App::enable('files_sharing'); function enableApp($app) {
OC_App::enable('files_encryption'); try {
OC_App::enable('user_ldap'); OC_App::enable($app);
OC_App::enable('calendar'); } catch (Exception $e) {
OC_App::enable('contacts'); echo $e;
OC_App::enable('apptemplateadvanced'); }
OC_App::enable('appframework'); }
#OC_App::enable('files_archive');
#OC_App::enable('mozilla_sync'); enableApp('files_sharing');
#OC_App::enable('news'); enableApp('files_encryption');
#OC_App::enable('provisioning_api'); enableApp('files_external');
#OC_App::enable('user_external'); enableApp('user_ldap');

Loading…
Cancel
Save