diff --git a/src/Illuminate/Foundation/Testing/TestResponse.php b/src/Illuminate/Foundation/Testing/TestResponse.php index f3f2bbcea5d0..e4b3902de198 100644 --- a/src/Illuminate/Foundation/Testing/TestResponse.php +++ b/src/Illuminate/Foundation/Testing/TestResponse.php @@ -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'));