I just wanna to get the Status Code of the link(Path).
[I use Auth too]
MY INPUT :
public function testPath()
{
$this->withoutMiddleware();
$this->call('GET', '/admin/create');
$this->assertResponseStatus(200);
}
Even i check this on Browser, I get proper response. But in PHPUnit testing, i get the following error...
1) ItemsTest::testPath
Expected status code 200, got 500.
Failed asserting that 500 matches expected 200
What is Wrong with my testing code...?
Aucun commentaire:
Enregistrer un commentaire