vigneshc91 / laravel-test-generator

Auto generate laravel unit test file based on the routes and form request files
https://vigneshc91.github.io/laravel-test-generator/
MIT License
21 stars 22 forks source link

Suggestion for status assertions #4

Open tarreislam opened 4 years ago

tarreislam commented 4 years ago

Hi

For assertStatus it would be more clean if the consts of Illuminate\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);