Merge pull request #243 from open-sausages/pulls/siteconfig-defaults-tests

Remove SiteConfig defaults from tests (fixes #224)
This commit is contained in:
Damian Mooyman 2016-05-19 13:59:00 +12:00
commit 61afbab8b7

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() {