I'm running Laravel 5.8 and this function isn't working for my tests. I've put it in the individual tests as the laracast video shows and i've also put it in the setup method. I'm still getting Failed asserting that 500 matches expected 201 type errors without a stacktrace. Anybody know why this could be?
PHPUnit 7.5.20 by Sebastian Bergmann and contributors
/** @test */
public function test_name(){
$this->withoutExceptionHandling();
$response = $this->post("path/url/");
$this->assertEquals(201, $response->getStatusCode());
}
Aucun commentaire:
Enregistrer un commentaire