Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 18, 2021
1 parent 06ac29b commit ff340a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ public function assertRedirectContains($uri)
$this->isRedirect(), 'Response status code ['.$this->getStatusCode().'] is not a redirect status code.'
);

PHPUnit::assertStringContainsString(
$uri, $this->headers->get('Location')
PHPUnit::assertTrue(
Str::contains($this->headers->get('Location'), $uri), 'Redirect location ['.$this->headers->get('Location').'] does not contain ['.$uri.'].'
);

return $this;
Expand Down

0 comments on commit ff340a6

Please sign in to comment.