mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixing broken i18nTest
This commit is contained in:
parent
e3dee85635
commit
ddd2d3af95
@ -484,12 +484,12 @@ class i18nTest extends SapphireTest {
|
||||
i18n::register_translator($translator, 'custom', 11);
|
||||
$this->assertEquals(
|
||||
i18n::_t('i18nTestModule.ENTITY'),
|
||||
'i18nTestModule.ENTITY CustomAdapter (en)',
|
||||
'i18nTestModule.ENTITY CustomAdapter (en_US)',
|
||||
'Existing entities overruled by adapter with higher priority'
|
||||
);
|
||||
$this->assertEquals(
|
||||
i18n::_t('AdapterEntity1', 'AdapterEntity1'),
|
||||
'AdapterEntity1 CustomAdapter (en)',
|
||||
'AdapterEntity1 CustomAdapter (en_US)',
|
||||
'New entities only defined in new adapter are detected'
|
||||
);
|
||||
|
||||
@ -501,7 +501,7 @@ class i18nTest extends SapphireTest {
|
||||
i18n::register_translator($translator, 'othercustom_lower_prio', 5);
|
||||
$this->assertEquals(
|
||||
i18n::_t('i18nTestModule.ENTITY'),
|
||||
'i18nTestModule.ENTITY CustomAdapter (en)',
|
||||
'i18nTestModule.ENTITY CustomAdapter (en_US)',
|
||||
'Adapter with lower priority loses'
|
||||
);
|
||||
|
||||
@ -513,7 +513,7 @@ class i18nTest extends SapphireTest {
|
||||
i18n::register_translator($translator, 'othercustom_higher_prio', 15);
|
||||
$this->assertEquals(
|
||||
i18n::_t('i18nTestModule.ENTITY'),
|
||||
'i18nTestModule.ENTITY OtherCustomAdapter (en)',
|
||||
'i18nTestModule.ENTITY OtherCustomAdapter (en_US)',
|
||||
'Adapter with higher priority wins'
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user