From 375696a9647f14a572fe0c545e4eea58f4751e66 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 26 Jul 2010 04:21:28 +0000 Subject: [PATCH] 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 --- dev/SapphireTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index b1284a8aa..3e056e3e7 100755 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -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);