Skip to content

Commit b4cd927

Browse files
Vyacheslavtaylorotwell
Vyacheslav
authored andcommitted
Replaced nonexistent status() method by getStatusCode() (#18559)
1 parent 78b3fe6 commit b4cd927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Testing/TestResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function assertStatus($status)
7373
public function assertRedirect($uri)
7474
{
7575
PHPUnit::assertTrue(
76-
$this->isRedirect(), 'Response status code ['.$this->status().'] is not a redirect status code.'
76+
$this->isRedirect(), 'Response status code ['.$this->getStatusCode().'] is not a redirect status code.'
7777
);
7878

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

0 commit comments

Comments
 (0)