From 83a80344d9f5bad9c37bcfe567d6e318bae5b966 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 30 Jan 2012 17:31:22 +0100 Subject: [PATCH] MINOR Skip instanciation in CMSMainTest->testThatGetCMSFieldsWorksOnEveryPageType() when can_be_root is false (will fail the write call, not related to test) --- tests/CMSMainTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/CMSMainTest.php b/tests/CMSMainTest.php index 6bbb75c0..57522e4c 100644 --- a/tests/CMSMainTest.php +++ b/tests/CMSMainTest.php @@ -112,7 +112,8 @@ 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(); $page->flushCache();