Skip to content

Commit

Permalink
Remove SiteConfig defaults from tests (fixes #224)
Browse files Browse the repository at this point in the history
Causes TranslatableSiteConfigTest.testCanEditTranslatedRootPages to fail
when used in the CWP recipe (possibly because of subsites?).
  • Loading branch information
chillu committed May 18, 2016
1 parent 7bfece9 commit cf043a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/TranslatableSiteConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cf043a0

Please sign in to comment.