From 5c4403d57edbf35127fbb9c5c47042654f409a64 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 2 Nov 2008 00:26:34 +0000 Subject: [PATCH] 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 --- tests/i18n/i18nTextCollectorTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/i18n/i18nTextCollectorTest.php b/tests/i18n/i18nTextCollectorTest.php index af726043d..d6a6e8cd6 100644 --- a/tests/i18n/i18nTextCollectorTest.php +++ b/tests/i18n/i18nTextCollectorTest.php @@ -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' + ); } }