From 3e9121b11e4a042c1397f9dbfbbc1fc0bdc28ac8 Mon Sep 17 00:00:00 2001 From: antograssiot Date: Sun, 31 Jan 2016 20:00:42 +0100 Subject: [PATCH] update test to avoid de be dependent of ICU version so its passes locally and on appveyor --- tests/TestCase/View/Helper/TimeHelperTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestCase/View/Helper/TimeHelperTest.php b/tests/TestCase/View/Helper/TimeHelperTest.php index 363dc8dbb43..f180804d4bd 100644 --- a/tests/TestCase/View/Helper/TimeHelperTest.php +++ b/tests/TestCase/View/Helper/TimeHelperTest.php @@ -449,8 +449,8 @@ public function testFormat() I18n::locale('fr_FR'); Time::$defaultLocale = 'fr_FR'; $time = new \Cake\I18n\FrozenTime('Thu Jan 14 13:59:28 2010'); - $result = $this->Time->format($time); - $expected = '14/01/10 13:59'; + $result = $this->Time->format($time, \IntlDateFormatter::FULL); + $expected = 'jeudi 14 janvier 2010 13:59:28 UTC'; $this->assertTimeFormat($expected, $result); } @@ -496,8 +496,8 @@ public function testFormatTimeInstance() public function assertTimeFormat($expected, $result) { return $this->assertEquals( - str_replace([',', '(', ')', ' at'], '', $expected), - str_replace([',', '(', ')', ' at'], '', $result) + str_replace([',', '(', ')', ' at', ' à'], '', $expected), + str_replace([',', '(', ')', ' at', ' à'], '', $result) ); }