From cf043a01062426dfbbcef6010238e5774905e6fa Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 19 May 2016 11:33:14 +1200 Subject: [PATCH] Remove SiteConfig defaults from tests (fixes #224) Causes TranslatableSiteConfigTest.testCanEditTranslatedRootPages to fail when used in the CWP recipe (possibly because of subsites?). --- tests/unit/TranslatableSiteConfigTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/TranslatableSiteConfigTest.php b/tests/unit/TranslatableSiteConfigTest.php index 3476613..fd6081d 100644 --- a/tests/unit/TranslatableSiteConfigTest.php +++ b/tests/unit/TranslatableSiteConfigTest.php @@ -22,6 +22,9 @@ function setUp() { $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() {