mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1160 from dhensby/pulls/inherited-allowed-children-test
Pulls/inherited allowed children test
This commit is contained in:
commit
039f6c198f
@ -882,9 +882,9 @@ class SiteTreeTest extends SapphireTest {
|
||||
$valid = $classB->validate();
|
||||
$this->assertFalse($valid->valid(), "Doesnt allow child on parents disallowing all children");
|
||||
|
||||
$classB->ParentID = $classC->ID;
|
||||
$classB->ParentID = $classCext->ID;
|
||||
$valid = $classB->validate();
|
||||
$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->validate();
|
||||
|
Loading…
Reference in New Issue
Block a user