Fixing failing test caused by missing space.

This commit is contained in:
mark_story 2010-12-31 16:35:44 -05:00
parent a9a1994a7e
commit 1f6fba9d9e

View file

@ -337,14 +337,14 @@ class TimeHelperTest extends CakeTestCase {
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));
}
/**