mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing failing test caused by missing space.
This commit is contained in:
parent
a9a1994a7e
commit
1f6fba9d9e
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue