Modify the test controller to call tag_installer::install and uninstall

Created the first tag unit test
This commit is contained in:
Tim Almdal
2008-11-25 07:05:03 +00:00
parent 52206148a8
commit b2af9ed470
2 changed files with 23 additions and 0 deletions

View File

@@ -60,16 +60,19 @@ class Test_Controller extends Controller {
// We probably don't want to uninstall and reinstall the core every time, but let's start off
// this way. Uninstall modules first and core last. Ignore errors during uninstall.
// @todo make this more dynamic
try {
comment_installer::uninstall();
user_installer::uninstall();
core_installer::uninstall();
tag_installer::uninstall();
} catch (Exception $e) {
}
core_installer::install();
user_installer::install();
comment_installer::install();
tag_installer::install();
print new Unit_Test();
}