MINOR Skip instanciation in CMSMainTest->testThatGetCMSFieldsWorksOnEveryPageType() when can_be_root is false (will fail the write call, not related to test)

This commit is contained in:
Ingo Schommer 2012-01-30 17:31:22 +01:00
parent 908a98b55b
commit 0bfd866623
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ class CMSMainTest extends FunctionalTest {
foreach($classes as $class) {
$page = new $class();
if($page instanceof TestOnly) continue;
if(!$page->stat('can_be_root')) continue;
$page->Title = "Test $class page";
$page->write();