From f2a9f9aa0a44982aa9d78b1917f4a86a256c373e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 19 Jun 2013 13:17:22 +0200 Subject: [PATCH] ErrorPageTest: Reset env state Otherwise SapphireTest will complain, see 0da70dafa457564a6adb02140ffeb5dd01f3a982 --- tests/model/ErrorPageTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/model/ErrorPageTest.php b/tests/model/ErrorPageTest.php index 8bd08bdc..c3c11629 100644 --- a/tests/model/ErrorPageTest.php +++ b/tests/model/ErrorPageTest.php @@ -18,7 +18,8 @@ class ErrorPageTest extends FunctionalTest { $this->tmpAssetsPath = sprintf('%s/_tmp_assets_%s', TEMP_FOLDER, rand()); Filesystem::makeFolder($this->tmpAssetsPath . '/ErrorPageTest'); ErrorPage::config()->static_filepath = $this->tmpAssetsPath . '/ErrorPageTest'; - + + $this->origEnvType = Config::inst()->get('Director', 'environment_type'); Config::inst()->update('Director', 'environment_type', 'live'); } @@ -29,6 +30,8 @@ class ErrorPageTest extends FunctionalTest { Filesystem::removeFolder($this->tmpAssetsPath . '/ErrorPageTest'); Filesystem::removeFolder($this->tmpAssetsPath); + + Config::inst()->update('Director', 'environment_type', $this->origEnvType); } public function test404ErrorPage() {