mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge branch '3.1' into 3.2
This commit is contained in:
commit
c8976a9d64
@ -947,9 +947,9 @@ class SiteTreeTest extends SapphireTest {
|
||||
$valid = $classB->doValidate();
|
||||
$this->assertFalse($valid->valid(), "Doesnt allow child on parents disallowing all children");
|
||||
|
||||
$classB->ParentID = $classC->ID;
|
||||
$classB->ParentID = $classCext->ID;
|
||||
$valid = $classB->doValidate();
|
||||
$this->assertFalse($valid->valid(), "Doesnt allow child on parents disallowing all children");
|
||||
$this->assertTrue($valid->valid(), "Extensions of allowed classes are incorrectly reported as invalid");
|
||||
|
||||
$classCext->ParentID = $classD->ID;
|
||||
$valid = $classCext->doValidate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user