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:
Ingo Schommer 2008-11-02 00:26:34 +00:00
parent f06ae18409
commit 5c4403d57e

View File

@ -468,6 +468,11 @@ PHP;
$moduleLangFileContent, $moduleLangFileContent,
'Decorated fields are not stored in the module of the decorated file if the decorator is located in another module' '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'; $otherModuleLangFile = "{$this->alternateBaseSavePath}/i18nothermodule/lang/" . $c->getDefaultLocale() . '.php';
$otherModuleLangFileContent = file_get_contents($otherModuleLangFile); $otherModuleLangFileContent = file_get_contents($otherModuleLangFile);
@ -476,6 +481,11 @@ PHP;
$otherModuleLangFileContent, $otherModuleLangFileContent,
'Decorated fields are stored in the module in which the decorator is placed' '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'
);
} }
} }