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