Skip to content

Commit

Permalink
Update StatusTest
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Jul 11, 2023
1 parent 180c3e2 commit 70a1e95
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/Feature/StatusTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<?php

it('tests 200 GET', function () {
$response = HttpClient()->get('/');

expect($response->getStatusCode())
->toBe(200);
});


it('tests 404 GET', function () {
$response = HttpClient()->get('/404');

expect($response->getStatusCode())
->toBe(404)
->and($response->getBody()->getContents())
->toBe('404 Not Found');
});


0 comments on commit 70a1e95

Please sign in to comment.