Add test showing that niceShort translates month names.

Refs #8968
This commit is contained in:
mark_story 2016-06-30 23:08:43 -04:00
parent b57009cbb9
commit d816ea6e16

View file

@ -454,6 +454,17 @@ class CakeTimeTest extends CakeTestCase {
$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
*