diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-13 08:37:41 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-13 08:37:41 +0000 |
commit | ee688d1f37ec424d6761bff7008021b6a122c76f (patch) | |
tree | 406d1d515f76fbf3d13ecc135001bc905a1e3c9b /modules/gallery_unit_test/controllers | |
parent | e7a763a8c2f49821a1c0de7ce5f9217f200e08d8 (diff) |
Reload modules *after* we blow away the database to flush out caches
Diffstat (limited to 'modules/gallery_unit_test/controllers')
-rw-r--r-- | modules/gallery_unit_test/controllers/gallery_unit_test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php index 4394cebf..e54963f2 100644 --- a/modules/gallery_unit_test/controllers/gallery_unit_test.php +++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php @@ -50,9 +50,6 @@ class Gallery_Unit_Test_Controller extends Controller { // Make this the default database for the rest of this run Database::$instances = array('default' => $db); - - // Reset our loaded modules - module::load_modules(); } catch (Exception $e) { print "{$e->getMessage()}\n"; return; @@ -77,6 +74,9 @@ class Gallery_Unit_Test_Controller extends Controller { @system("rm -rf test/var"); @system('mkdir -p test/var/logs'); + // Reset our loaded modules + module::load_modules(); + // Install all modules module::install("core"); $modules = array(); |