This code is from the test box.

$response = $this->get('/'); $response->assertStatus(200); 

After installing the Laravel BrowserKit Testing package

the assertStatus method assertStatus no longer work

And now I use such code

 $response = $this->call('GET', '/'); $this->assertEquals(200, $response->status()); 

Is it identical to the previous one?

And is it possible to do something to use all the packages?

  • Identical, there you called a method from the object that checked its status, then you call the assertEquals method from the test's ancestor and pass the response there, and the status is checked. And all the packages are unlikely - manowartop

0