Skip to content

Commit

Permalink
Replaced nonexistent status() method by getStatusCode() (#18559)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav authored and taylorotwell committed Mar 29, 2017
1 parent 78b3fe6 commit b4cd927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function assertStatus($status)
public function assertRedirect($uri)
{
PHPUnit::assertTrue(
$this->isRedirect(), 'Response status code ['.$this->status().'] is not a redirect status code.'
$this->isRedirect(), 'Response status code ['.$this->getStatusCode().'] is not a redirect status code.'
);

PHPUnit::assertEquals(app('url')->to($uri), $this->headers->get('Location'));
Expand Down

0 comments on commit b4cd927

Please sign in to comment.