From 11fac7c0c6a48235dc2e0a2aded7e0c43f63cdd6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 05:29:48 +0000 Subject: [PATCH] MINOR refactored setting/getting strict hierarchy setting. (from r98654) (from r99126) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111607 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/CMSMainTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMSMainTest.php b/tests/CMSMainTest.php index 3d7ee8bd..39af147c 100644 --- a/tests/CMSMainTest.php +++ b/tests/CMSMainTest.php @@ -112,7 +112,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'); @@ -124,7 +124,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); } /**