Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix hard coded date.

  • Loading branch information...
commit d9244048b6fda8fab13dd850e1f459bd0ef6386a 1 parent 579aff5
@markstory markstory authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Test/Case/Utility/CakeTimeTest.php
View
5 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(
Please sign in to comment.
Something went wrong with that request. Please try again.