vendredi 22 janvier 2021

Assert status failure

I was sending request by postman - status 200. But tests fail:

        dump($response->getStatusCode());
        $response->assertStatus(200)
...200
......F..                                                      12 / 12 (100%)

Time: 00:04.971, Memory: 68.50 MB

There was 1 failure:

1) Tests\Feature\MeasurementTest::testSharing
Expected status code 200 but received 500.
Failed asserting that 200 is identical to 500.

Any idea how to fix this problem? I was dumping whole response but also there evrything look fine.

Aucun commentaire:

Enregistrer un commentaire