Permalink
Browse files

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.
  • Loading branch information...
1 parent 522dff2 commit 03311b4d00348e946be854e9b2b71690b5fabea5 @chillu chillu committed Oct 21, 2013
Showing with 0 additions and 15 deletions.
  1. +0 −15 tests/unit/TranslatableTest.php
@@ -978,21 +978,6 @@ function testSiteTreeChangePageTypeInMaster() {
);
}
- 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';

0 comments on commit 03311b4

Please sign in to comment.