summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-02-24 05:27:07 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-02-24 05:27:07 +0000
commit41600a982f566cf47c240fd5c4b46096983d2b7e (patch)
tree5ebc2e8e244116c96be151bb83898b856e0766a5
parent9bba87ddc53a2e220642a7c33e1f6112d989fe60 (diff)
Fix bootstrap / installation issue for unit test framework:
Install user module before installing other modules. E.g. local_import's installation routine depends on the user module to be installed.
-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);