Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lakuapik committed Dec 11, 2023
1 parent 17b499d commit 6d11964
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Features/ApiResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
Route::get('api-forbidden', fn () => ApiResponse::forbidden());
Route::get('api-badRequest', fn () => ApiResponse::badRequest());

getJson('api-create')->assertOk();
getJson('api-success')->assertOk();
getJson('api-error')->assertInternalServerError();
getJson('api-notFound')->assertNotFound();
getJson('api-unprocessable')->assertUnprocessable();
getJson('api-unauthorized')->assertUnauthorized();
getJson('api-forbidden')->assertForbidden();
getJson('api-badRequest')->assertBadRequest();
getJson('api-create')->assertStatus(Response::HTTP_OK);
getJson('api-success')->assertStatus(Response::HTTP_OK);
getJson('api-error')->assertStatus(Response::HTTP_INTERNAL_SERVER_ERROR);
getJson('api-notFound')->assertStatus(Response::HTTP_NOT_FOUND);
getJson('api-unprocessable')->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);
getJson('api-unauthorized')->assertStatus(Response::HTTP_UNAUTHORIZED);
getJson('api-forbidden')->assertStatus(Response::HTTP_FORBIDDEN);
getJson('api-badRequest')->assertStatus(Response::HTTP_BAD_REQUEST);
});

it('returns correct response header', function () {
Expand Down

0 comments on commit 6d11964

Please sign in to comment.