mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
ba0c2380e9
commit
bb1f6ad166
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -62,6 +62,8 @@ class i18nTest extends SapphireTest {
|
||||
unset($_TEMPLATE_MANIFEST['i18nTestModuleInclude.ss']);
|
||||
|
||||
i18n::set_locale('en_US');
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function testGetExistingTranslations() {
|
||||
|
@ -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() {
|
||||
|
@ -33,6 +33,8 @@ class TranslatableTest extends FunctionalTest {
|
||||
|
||||
self::kill_temp_db();
|
||||
self::create_temp_db();
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function testUpdateCMSFieldsOnSiteTree() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user