BUGFIX Added parent::setUp() and parent::tearDown() calls to various tests, in preparation for push/pop a mock controller the controller-stack

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67290 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-12-03 05:53:29 +00:00 committed by Sam Minnee
parent ba0c2380e9
commit bb1f6ad166
4 changed files with 10 additions and 0 deletions

View File

@ -74,6 +74,8 @@ class ManifestBuilderTest extends SapphireTest {
protected static $test_fixture_project;
function setUp() {
parent::setUp();
// Trick the auto-loder into loading this class before we muck with the manifest
new TokenisedRegularExpression(null);
@ -131,6 +133,8 @@ class ManifestBuilderTest extends SapphireTest {
// Kill the folder after we're done
$baseFolder = TEMP_FOLDER . '/manifest-test/';
Filesystem::removeFolder($baseFolder);
parent::tearDown();
}
}

View File

@ -62,6 +62,8 @@ class i18nTest extends SapphireTest {
unset($_TEMPLATE_MANIFEST['i18nTestModuleInclude.ss']);
i18n::set_locale('en_US');
parent::tearDown();
}
function testGetExistingTranslations() {

View File

@ -60,6 +60,8 @@ class i18nTextCollectorTest extends SapphireTest {
global $_TEMPLATE_MANIFEST;
unset($_TEMPLATE_MANIFEST['i18nTestModule.ss']);
unset($_TEMPLATE_MANIFEST['i18nTestModuleInclude.ss']);
parent::tearDown();
}
function testCollectFromTemplateSimple() {

View File

@ -33,6 +33,8 @@ class TranslatableTest extends FunctionalTest {
self::kill_temp_db();
self::create_temp_db();
parent::tearDown();
}
function testUpdateCMSFieldsOnSiteTree() {