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
908a98b55b
commit
0bfd866623
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user