summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/controllers/gallery_unit_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test/controllers/gallery_unit_test.php')
-rw-r--r--modules/gallery_unit_test/controllers/gallery_unit_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php
index d4220770..14be1cd0 100644
--- a/modules/gallery_unit_test/controllers/gallery_unit_test.php
+++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -91,11 +91,13 @@ class Gallery_Unit_Test_Controller extends Controller {
module::load_modules();
// Install all modules
+ // Force core and user to be installed first to resolve dependencies.
module::install("core");
+ module::install("user");
$modules = array();
foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) {
$module_name = basename(dirname(dirname($file)));
- if ($module_name == "core") {
+ if (in_array($module_name, array("core", "user"))) {
continue;
}
module::install($module_name);