mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6885 from open-sausages/pulls/4.0/fix-intl-test-consistency
Fix intl ICU inconsistencies
This commit is contained in:
commit
a136b8ad44
@ -86,7 +86,8 @@ class DBDatetimeTest extends SapphireTest
|
||||
public function testTime()
|
||||
{
|
||||
$date = DBDatetime::create_field('Datetime', '2001-12-31 22:10:59');
|
||||
$this->assertEquals('10:10:59 PM', $date->Time());
|
||||
// casing depends on system ICU library
|
||||
$this->assertRegexp('#10:10:59 (PM|pm)#', $date->Time());
|
||||
}
|
||||
|
||||
public function testTime24()
|
||||
|
@ -156,10 +156,6 @@ class DBMoneyTest extends SapphireTest
|
||||
// USD in de locale
|
||||
$USD->setLocale('de_DE');
|
||||
$this->assertSame($this->clean('53.292,18 $'), $this->clean($USD->Nice()));
|
||||
|
||||
// USD in swedish locale is fun
|
||||
$USD->setLocale('sv');
|
||||
$this->assertSame($this->clean('53 292,18 US$'), $this->clean($USD->Nice()));
|
||||
}
|
||||
|
||||
public function testGetSymbol()
|
||||
|
Loading…
Reference in New Issue
Block a user