mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Tests: Fix "September" behavior difference in testBuildDateLocale()
Whether "Sep" or "Sept" is the short month name for "%h" apparently depends on `DateTime` or ext-intl, not on whether Microsoft Windows is used. Or something like that. PHP is weird…
This commit is contained in:
parent
cd5c94ecb4
commit
43792c4505
@ -127,7 +127,7 @@
|
||||
{
|
||||
$actual = $this->dateObj->buildDateLocale();
|
||||
|
||||
$september = (stripos(PHP_OS, 'WIN') === 0) ? 'Sept' : 'Sep';
|
||||
$september = eShims::strftime('%h', mktime(1, 1, 1, 9, 2, 2013));
|
||||
|
||||
$this->assertStringContainsString('$.fn.datetimepicker.dates["en"]', $actual);
|
||||
$this->assertStringContainsString('days: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],', $actual);
|
||||
|
Loading…
x
Reference in New Issue
Block a user