From 41600a982f566cf47c240fd5c4b46096983d2b7e Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Tue, 24 Feb 2009 05:27:07 +0000 Subject: 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. --- modules/gallery_unit_test/controllers/gallery_unit_test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/gallery_unit_test/controllers') 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); -- cgit v1.2.3