mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
f483e09ee0
commit
83a80344d9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user