mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Dont instanciate abstract classes in i18nTextCollector
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65062 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f06ae18409
commit
5c4403d57e
@ -468,6 +468,11 @@ PHP;
|
||||
$moduleLangFileContent,
|
||||
'Decorated fields are not stored in the module of the decorated file if the decorator is located in another module'
|
||||
);
|
||||
$this->assertNotContains(
|
||||
"\$lang['en_US']['i18nTestModuleDecorator']['has_one_Page'] = 'Page';",
|
||||
$moduleLangFileContent,
|
||||
'Decorated fields are not stored in the module of the decorated file if the decorator is located in another module'
|
||||
);
|
||||
|
||||
$otherModuleLangFile = "{$this->alternateBaseSavePath}/i18nothermodule/lang/" . $c->getDefaultLocale() . '.php';
|
||||
$otherModuleLangFileContent = file_get_contents($otherModuleLangFile);
|
||||
@ -476,6 +481,11 @@ PHP;
|
||||
$otherModuleLangFileContent,
|
||||
'Decorated fields are stored in the module in which the decorator is placed'
|
||||
);
|
||||
$this->assertContains(
|
||||
"\$lang['en_US']['i18nTestModuleDecorator']['has_one_Page'] = 'Page';",
|
||||
$otherModuleLangFileContent,
|
||||
'Decorated fields are stored in the module in which the decorator is placed'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user