Closed bastien-phi closed 7 months ago
Currently, passing null to expectsTrue passes but I think it is an error.
null
expectsTrue
Indeed, if no exception was raised, expectsTrue will pass and a valid implementation can execute this test without failing
$this->getJson('/api/path') ->assertValidRequest() ->assertInvalidRequest() ->assertValidResponse() ->assertInvalidResponse();
I think that a request cannot be both valid and invalid.
This behavior caused false-positive in the tests. I fixed them
Currently, passing
null
toexpectsTrue
passes but I think it is an error.Indeed, if no exception was raised,
expectsTrue
will pass and a valid implementation can execute this test without failingI think that a request cannot be both valid and invalid.
This behavior caused false-positive in the tests. I fixed them