mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
ErrorPageTest: Reset env state
Otherwise SapphireTest will complain, see 0da70dafa457564a6adb02140ffeb5dd01f3a982
This commit is contained in:
parent
8e7802f8a1
commit
f2a9f9aa0a
@ -19,6 +19,7 @@ class ErrorPageTest extends FunctionalTest {
|
|||||||
Filesystem::makeFolder($this->tmpAssetsPath . '/ErrorPageTest');
|
Filesystem::makeFolder($this->tmpAssetsPath . '/ErrorPageTest');
|
||||||
ErrorPage::config()->static_filepath = $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');
|
Config::inst()->update('Director', 'environment_type', 'live');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,6 +30,8 @@ class ErrorPageTest extends FunctionalTest {
|
|||||||
|
|
||||||
Filesystem::removeFolder($this->tmpAssetsPath . '/ErrorPageTest');
|
Filesystem::removeFolder($this->tmpAssetsPath . '/ErrorPageTest');
|
||||||
Filesystem::removeFolder($this->tmpAssetsPath);
|
Filesystem::removeFolder($this->tmpAssetsPath);
|
||||||
|
|
||||||
|
Config::inst()->update('Director', 'environment_type', $this->origEnvType);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test404ErrorPage() {
|
public function test404ErrorPage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user