Skip to content

Commit

Permalink
make name required
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 16, 2022
1 parent 5774310 commit 98a0301
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,13 @@ public function assertRedirectContains($uri)
/**
* Assert whether the response is redirecting to a given route.
*
* @param string|null $name
* @param string $name
* @param mixed $parameters
* @return $this
*/
public function assertRedirectToRoute($name = null, $parameters = [])
public function assertRedirectToRoute($name, $parameters = [])
{
if (! is_null($name)) {
$uri = route($name, $parameters);
}
$uri = route($name, $parameters);

PHPUnit::assertTrue(
$this->isRedirect(),
Expand Down

0 comments on commit 98a0301

Please sign in to comment.