MINOR Fixed failing tests because of locale not being set to the default in SapphireTest::setUp()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@108500 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-07-26 04:21:28 +00:00 committed by Sam Minnee
parent f9257a6035
commit 375696a964

View File

@ -108,6 +108,8 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
$this->originalIsRunningTest = self::$is_running_test;
self::$is_running_test = true;
// i18n needs to be set to the defaults or tests fail
i18n::set_locale(i18n::default_locale());
i18n::set_date_format(null);
i18n::set_time_format(null);