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 f483e09ee0
commit 83a80344d9

View File

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