Skip to content

Commit

Permalink
FIX Use set instead of update for config calls
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jul 17, 2017
1 parent 97a94b5 commit c6b5f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ErrorPageTest.php
Expand Up @@ -155,10 +155,10 @@ public function testGetByLink()
{
$notFound = $this->objFromFixture(ErrorPage::class, '404');

SiteTree::config()->nested_urls = false;
Config::modify()->set(SiteTree::class, 'nested_urls', false);
$this->assertEquals($notFound->ID, SiteTree::get_by_link($notFound->Link(), false)->ID);

Config::inst()->update(SiteTree::class, 'nested_urls', true);
Config::modify()->set(SiteTree::class, 'nested_urls', true);
$this->assertEquals($notFound->ID, SiteTree::get_by_link($notFound->Link(), false)->ID);
}

Expand Down

0 comments on commit c6b5f3c

Please sign in to comment.