mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Renamed PageNode to SiteTreeTest_PageNode in SiteTreeTest to avoid breaking /db/build with missing autoloads
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@58125 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f2a9208831
commit
762b36b16b
@ -54,15 +54,15 @@ class SiteTreeTest extends SapphireTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testParentModelReturnType() {
|
function testParentModelReturnType() {
|
||||||
$parent = new PageNode();
|
$parent = new SiteTreeTest_PageNode();
|
||||||
$child = new PageNode();
|
$child = new SiteTreeTest_PageNode();
|
||||||
|
|
||||||
$child->setParent($parent);
|
$child->setParent($parent);
|
||||||
$this->assertType('PageNode', $child->Parent);
|
$this->assertType('SiteTreeTest_PageNode', $child->Parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class PageNode extends SiteTree { }
|
class SiteTreeTest_PageNode extends SiteTree implements TestOnly { }
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user