diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-04 08:17:57 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-04 08:17:57 +0000 |
commit | 80a7db61c9fba53477c1ec0850bdffaf7b11657a (patch) | |
tree | f9db43e4cb7cab0191ed0bb173fd878196ae21f7 /modules/gallery_unit_test | |
parent | 9ba9f7bf2754988b7408c23c32b1f2a332528d29 (diff) |
Fix up the test framework to work now that we're only loading installed modules
via the autoloader.
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r-- | modules/gallery_unit_test/controllers/gallery_unit_test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php index 2d70aad8..d5ea21ed 100644 --- a/modules/gallery_unit_test/controllers/gallery_unit_test.php +++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php @@ -82,6 +82,11 @@ class Gallery_Unit_Test_Controller extends Controller { continue; } + $modules = Kohana::config('core.modules'); + $modules[] = MODPATH . $module_name; + Kohana::config_set('core.modules', $modules); + require_once(DOCROOT . "modules/${module_name}/helpers/${module_name}_installer.php"); + $installer_class = "{$module_name}_installer"; if (method_exists($installer_class, "install")) { call_user_func_array(array($installer_class, "install"), array()); |