summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r--modules/gallery_unit_test/controllers/gallery_unit_test.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php
index 5206f9fb..c1457b12 100644
--- a/modules/gallery_unit_test/controllers/gallery_unit_test.php
+++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -70,7 +70,6 @@ class Gallery_Unit_Test_Controller extends Controller {
}
// Find all tests, excluding sample tests that come with the unit_test module.
- $paths = array(APPPATH . "tests");
foreach (glob(MODPATH . "*/tests") as $path) {
if ($path != MODPATH . "unit_test/tests") {
$paths[] = $path;
@@ -96,15 +95,15 @@ class Gallery_Unit_Test_Controller extends Controller {
$db->clear_cache();
// Install all modules
- // Force core and user to be installed first to resolve dependencies.
- core_installer::install(true);
+ // Force gallery and user to be installed first to resolve dependencies.
+ gallery_installer::install(true);
module::load_modules();
module::install("user");
module::activate("user");
$modules = array();
foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) {
$module_name = basename(dirname(dirname($file)));
- if (in_array($module_name, array("core", "user"))) {
+ if (in_array($module_name, array("gallery", "user"))) {
continue;
}
module::install($module_name);