Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Cleaning up some class definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Jan 3, 2016
1 parent 83cb27c commit b335037
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/tests/MisdirectionFunctionalTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,18 @@ public function testRequestFilter() {

// Instantiate a fallback to use.

$second->deleteFromStage('Live');
$second->deleteFromStage('Stage');
$first->Fallback = 'Nearest';
$first->writeToStage('Stage');
$first->writeToStage('Live');

// Determine whether the fallback is matched.
// The database needs to be cleaned up to prevent further testing conflict.

$second->deleteFromStage('Live');
$second->deleteFromStage('Stage');
$mapping->delete();

// Determine whether the fallback is matched.

$response = $this->get('wrong/page');
$this->assertEquals($response->getStatusCode(), 303);
$this->assertEquals($response->getHeader('Location'), '/wrong/?direct=1');
Expand Down

0 comments on commit b335037

Please sign in to comment.