Amending redundant test

This commit is contained in:
Daniel Hensby 2015-01-25 21:07:41 +00:00
parent 61d37fc084
commit d6a57eb507
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66
1 changed files with 2 additions and 2 deletions

View File

@ -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();