mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
b57009cbb9
commit
d816ea6e16
1 changed files with 11 additions and 0 deletions
|
@ -454,6 +454,17 @@ class CakeTimeTest extends CakeTestCase {
|
||||||
$this->_restoreSystemTimezone();
|
$this->_restoreSystemTimezone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* testNiceShort translations
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function testNiceShortI18n() {
|
||||||
|
setlocale(LC_ALL, 'es_ES');
|
||||||
|
$time = strtotime('2015-01-07 03:05:00');
|
||||||
|
$this->assertEquals('ene 7th 2015, 03:05', $this->Time->niceShort($time));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testDaysAsSql method
|
* testDaysAsSql method
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue