Skip to content

Commit

Permalink
Merge pull request #183 from glowdemon1/master
Browse files Browse the repository at this point in the history
Add assertPathIsNot function
  • Loading branch information
taylorotwell authored Mar 10, 2017
2 parents d471ec2 + 20dfabc commit d4a0083
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Concerns/MakesAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ public function assertPathIs($path)
return $this;
}

/**
* Assert that the current URL path does not match the given path.
*
* @param string $path
* @return $this
*/
public function assertPathIsNot($path)
{
PHPUnit::assertNotEquals($path, parse_url(
$this->driver->getCurrentURL()
)['path']);

return $this;
}

/**
* Assert that the current URL path matches the given route.
*
Expand Down

0 comments on commit d4a0083

Please sign in to comment.