Remove SiteConfig defaults from tests (fixes #224)

Causes TranslatableSiteConfigTest.testCanEditTranslatedRootPages to fail
when used in the CWP recipe (possibly because of subsites?).
This commit is contained in:
Ingo Schommer 2016-05-19 11:33:14 +12:00
parent 7bfece9666
commit cf043a0106

View File

@ -22,6 +22,9 @@ class TranslatableSiteConfigTest extends SapphireTest {
$this->origLocale = Translatable::default_locale();
Translatable::set_default_locale("en_US");
// Delete any default records created outside of fixtures
SiteConfig::get()->exclude('ID', $this->allFixtureIDs('SiteConfig'))->removeAll();
}
function tearDown() {