Skip to content
Permalink
Browse files

Fix up failing tests on new versions of libicu

  • Loading branch information...
saeideng committed May 31, 2018
1 parent c5c3b85 commit 6f0dac29bfdccd5f5f11ec976e5db38cd38636bf
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/TestCase/View/Helper/TimeHelperTest.php
@@ -526,8 +526,8 @@ public function testFormat()
$this->assertTimeFormat($expected, $result);
$result = $this->Time->format($time, \IntlDateFormatter::FULL);
$expected = 'Thursday, January 14, 2010 at 1:59:28 PM GMT';
$this->assertTimeFormat($expected, $result);
$expected = 'Thursday, January 14, 2010 at 1:59:28 PM';
$this->assertStringStartsWith($expected, $result);
$result = $this->Time->format('invalid date', null, 'Date invalid');
$expected = 'Date invalid';
@@ -537,8 +537,8 @@ public function testFormat()
Time::$defaultLocale = 'fr_FR';
$time = new \Cake\I18n\FrozenTime('Thu Jan 14 13:59:28 2010');
$result = $this->Time->format($time, \IntlDateFormatter::FULL);
$expected = 'jeudi 14 janvier 2010 13:59:28 UTC';
$this->assertTimeFormat($expected, $result);
$this->assertContains('jeudi 14 janvier 2010', $result);
$this->assertContains('13:59:28', $result);
}
/**

0 comments on commit 6f0dac2

Please sign in to comment.
You can’t perform that action at this time.