mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user