Open tarreislam opened 4 years ago
Hi
For assertStatus it would be more clean if the consts of Illuminate\Http\Response were used instead of integers.
assertStatus
Illuminate\Http\Response
$response->assertStatus(200); -> $response->assertStatus(Response::HTTP_OK); $response->assertStatus(400); -> $response->assertStatus(Response::HTTP_NOT_FOUND); $response->assertStatus(422); -> $response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);
$response->assertStatus(200);
$response->assertStatus(Response::HTTP_OK);
$response->assertStatus(400);
$response->assertStatus(Response::HTTP_NOT_FOUND);
$response->assertStatus(422);
$response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);
Hi
For
assertStatus
it would be more clean if the consts ofIlluminate\Http\Response
were used instead of integers.Example
$response->assertStatus(200);
->$response->assertStatus(Response::HTTP_OK);
$response->assertStatus(400);
->$response->assertStatus(Response::HTTP_NOT_FOUND);
$response->assertStatus(422);
->$response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);