Skip to content

Commit 98a0301

Browse files
committed
make name required
1 parent 5774310 commit 98a0301

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Illuminate/Testing/TestResponse.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,13 @@ public function assertRedirectContains($uri)
255255
/**
256256
* Assert whether the response is redirecting to a given route.
257257
*
258-
* @param string|null $name
258+
* @param string $name
259259
* @param mixed $parameters
260260
* @return $this
261261
*/
262-
public function assertRedirectToRoute($name = null, $parameters = [])
262+
public function assertRedirectToRoute($name, $parameters = [])
263263
{
264-
if (! is_null($name)) {
265-
$uri = route($name, $parameters);
266-
}
264+
$uri = route($name, $parameters);
267265

268266
PHPUnit::assertTrue(
269267
$this->isRedirect(),

0 commit comments

Comments
 (0)