From 03311b4d00348e946be854e9b2b71690b5fabea5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 22 Oct 2013 00:20:17 +0200 Subject: [PATCH] Removed testLocalePersistsInAllPageTypes() Doesn't respect custom business logic such as validate() methods denying page creation to certain users, or page creation on the root level. The test doesn't add a whole lot of value, since the baseline translation creation doesn't really differ between page types. --- tests/unit/TranslatableTest.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/unit/TranslatableTest.php b/tests/unit/TranslatableTest.php index 1aa67a8..1e4964c 100755 --- a/tests/unit/TranslatableTest.php +++ b/tests/unit/TranslatableTest.php @@ -978,21 +978,6 @@ class TranslatableTest extends FunctionalTest { ); } - function testLocalePersistsInAllPageTypes() { - $types = ClassInfo::subclassesFor('SiteTree'); - foreach($types as $type) { - if(singleton($type) instanceof TestOnly) continue; - - $enPage = new $type(); - $enPage->Locale = 'en_US'; - $enPage->write(); - - $dePage = $enPage->createTranslation('de_DE'); - $dePage->write(); - $this->assertEquals('de_DE', $dePage->Locale, "Page type $type retains Locale property"); - } - } - function testGetTranslationByStage() { $publishedPage = new SiteTree(); $publishedPage->Locale = 'en_US';