Skip to content
Permalink
Browse files

Add test showing that niceShort translates month names.

Refs #8968
  • Loading branch information...
markstory committed Jul 1, 2016
1 parent b57009c commit d816ea6e1603f10c7878c4bb2af74daf4c9a78eb
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/Cake/Test/Case/Utility/CakeTimeTest.php
@@ -454,6 +454,17 @@ public function testNiceShort() {
$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
*

0 comments on commit d816ea6

Please sign in to comment.
You can’t perform that action at this time.