mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixing failing test caused by missing space.
This commit is contained in:
parent
a7061510c1
commit
5768bfe5c7
1 changed files with 3 additions and 3 deletions
|
@ -339,14 +339,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…
Add table
Reference in a new issue