mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
f9257a6035
commit
375696a964
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user