From b4cd9279cf5aebdfd10c11003ea3d2b0e3ba48ec Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Wed, 29 Mar 2017 16:12:49 +0300 Subject: [PATCH] Replaced nonexistent status() method by getStatusCode() (#18559) --- src/Illuminate/Foundation/Testing/TestResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'));