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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112754 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-19 00:37:55 +00:00
parent 60c78eb54d
commit d28d7510af

View File

@ -115,6 +115,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);