Skip to content

Commit

Permalink
Add test showing that niceShort translates month names.
Browse files Browse the repository at this point in the history
Refs #8968
  • Loading branch information
markstory committed Jul 1, 2016
1 parent b57009c commit d816ea6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Cake/Test/Case/Utility/CakeTimeTest.php
Expand Up @@ -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
*
Expand Down

0 comments on commit d816ea6

Please sign in to comment.