From 797e5586c528753eb8104dfc75d99c08f6e8c8f2 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 23 May 2014 18:29:07 +1200 Subject: [PATCH] Fix testcase --- tests/VersionFeedFunctionalTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/VersionFeedFunctionalTest.php b/tests/VersionFeedFunctionalTest.php index 736fc99..d441821 100644 --- a/tests/VersionFeedFunctionalTest.php +++ b/tests/VersionFeedFunctionalTest.php @@ -183,7 +183,6 @@ class VersionFeedFunctionalTest extends FunctionalTest { * Tests response code for globally disabled feedss */ public function testFeedViewability() { - $siteConfig = SiteConfig::current_site_config(); // Nested loop through each configuration foreach(array(true, false) as $publicHistory_Page) { @@ -201,6 +200,7 @@ class VersionFeedFunctionalTest extends FunctionalTest { foreach(array(true, false) as $allChanges_Config) { foreach(array(true, false) as $allChanges_SiteConfig) { Config::inst()->update('VersionFeed', 'allchanges_enabled', $allChanges_Config); + $siteConfig = SiteConfig::current_site_config(); $siteConfig->AllChangesEnabled = $allChanges_SiteConfig; $siteConfig->write();