Skip to content
Permalink
Browse files

Fix hard coded date.

  • Loading branch information...
markstory committed May 13, 2012
1 parent 579aff5 commit d9244048b6fda8fab13dd850e1f459bd0ef6386a
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Test/Case/Utility/CakeTimeTest.php
@@ -143,11 +143,12 @@ public function testTimeAgoInWords() {
);
$this->assertEquals('1 month ago', $result);
$timestamp = strtotime('-1 years -2 weeks -3 days');
$result = $this->Time->timeAgoInWords(
strtotime('-1 years -2 weeks -3 days'),
$timestamp,
array('accuracy' => array('year' => 'year'))
);
$expected = 'on 25/4/11';
$expected = 'on ' . date('j/n/y', $timestamp);
$this->assertEquals($expected, $result);
$result = $this->Time->timeAgoInWords(

0 comments on commit d924404

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