From c6b5f3cb41e5a9c48dd279252a065326f09b0678 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Mon, 17 Jul 2017 17:54:50 +1200 Subject: [PATCH] FIX Use set instead of update for config calls --- tests/ErrorPageTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ErrorPageTest.php b/tests/ErrorPageTest.php index c4cd505..abd47f4 100644 --- a/tests/ErrorPageTest.php +++ b/tests/ErrorPageTest.php @@ -155,10 +155,10 @@ public function testGetByLink() { $notFound = $this->objFromFixture(ErrorPage::class, '404'); - SiteTree::config()->nested_urls = false; + Config::modify()->set(SiteTree::class, 'nested_urls', false); $this->assertEquals($notFound->ID, SiteTree::get_by_link($notFound->Link(), false)->ID); - Config::inst()->update(SiteTree::class, 'nested_urls', true); + Config::modify()->set(SiteTree::class, 'nested_urls', true); $this->assertEquals($notFound->ID, SiteTree::get_by_link($notFound->Link(), false)->ID); }