Skip to content

Commit

Permalink
Fixing failing test caused by missing space.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 31, 2010
1 parent a706151 commit 5768bfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/tests/cases/libs/view/helpers/time.test.php
Expand Up @@ -339,14 +339,14 @@ function testNiceShort() {
if (date('Y', $time) == date('Y')) {
$this->assertEqual(date('M jS, H:i', $time), $this->Time->niceShort($time));
} else {
$this->assertEqual(date('M jSY, H:i', $time), $this->Time->niceShort($time));
$this->assertEqual(date('M jS Y, H:i', $time), $this->Time->niceShort($time));
}

$time = time();
$this->assertEqual('Today, '.date('H:i', $time), $this->Time->niceShort($time));
$this->assertEqual('Today, ' . date('H:i', $time), $this->Time->niceShort($time));

$time = time() - DAY;
$this->assertEqual('Yesterday, '.date('H:i', $time), $this->Time->niceShort($time));
$this->assertEqual('Yesterday, ' . date('H:i', $time), $this->Time->niceShort($time));
}

/**
Expand Down

0 comments on commit 5768bfe

Please sign in to comment.