MINOR refactored setting/getting strict hierarchy setting. (from r98654)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99126 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-16 04:07:12 +00:00 committed by Sam Minnee
parent 61fac5b804
commit a7ede59221

View File

@ -111,7 +111,7 @@ class CMSMainTest extends FunctionalTest {
function testCanPublishPageWithUnpublishedParentWithStrictHierarchyOff() {
$this->logInWithPermssion('ADMIN');
SiteTree::enforce_strict_hierarchy(true);
SiteTree::set_enforce_strict_hierarchy(true);
$parentPage = $this->objFromFixture('Page','page3');
$childPage = $this->objFromFixture('Page','page1');
@ -123,7 +123,7 @@ class CMSMainTest extends FunctionalTest {
$childPage->getCMSActions()->column('Name'),
'Can publish a page with an unpublished parent with strict hierarchy off'
);
SiteTree::enforce_strict_hierarchy(false);
SiteTree::set_enforce_strict_hierarchy(false);
}
/**