Created
August 7, 2016 03:43
-
-
Save mercuryseries/59373e1d5a6aea928c9b10c14aaaa29f to your computer and use it in GitHub Desktop.
Some test method helpers for the Laravel Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait InteractsWithPages | |
{ | |
/** | |
* Assert that the current route matches the given one. | |
* | |
* @param string $route_name | |
* @return $this | |
*/ | |
public function seeCurrentRouteIs($route_name) | |
{ | |
return $this->seePageIs(route($route_name)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment