Skip to content

Suggestion for status assertions #4

@tarreislam

Description

@tarreislam

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions