diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-19 02:35:51 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-19 02:35:51 +0000 |
commit | 61d8a143eaf7478b15edf554f2ccaada75c8bd9d (patch) | |
tree | 182a026565370e42d22db9ae15cc9fcbed8828c9 /modules/gallery_unit_test/controllers | |
parent | 0b721258f42c0775d1fb90966a82fe3a81763e00 (diff) |
Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install. Use this in
both the scaffolding and the unit test code.
Greatly simplify the scaffolding uninstall/reinstall code.
Diffstat (limited to 'modules/gallery_unit_test/controllers')
-rw-r--r-- | modules/gallery_unit_test/controllers/gallery_unit_test.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php index 92d3f117..7a277aa7 100644 --- a/modules/gallery_unit_test/controllers/gallery_unit_test.php +++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php @@ -89,14 +89,16 @@ class Gallery_Unit_Test_Controller extends Controller { @system("rm -rf test/var"); @mkdir('test/var/logs', 0777, true); - // Reset our loaded modules + // Reset our caches module::$module_names = array(); module::$modules = array(); module::$var_cache = array(); + $db->clear_cache(); // Install all modules // Force core and user to be installed first to resolve dependencies. - module::install("core"); + core_installer::install(true); + module::load_modules(); module::install("user"); $modules = array(); foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) { |