8000 [10.x] Add missing asserts in http tests by milwad-dev · Pull Request #8769 · laravel/docs · GitHub
[go: up one dir, main page]

Skip to content

[10.x] Add missing asserts in http tests #8769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add assertInternalServerError into http-tests
  • Loading branch information
milwad-dev committed May 3, 2023
commit 85900cf96a34b6993c14190c317fdd78f3ea6afc
8 changes: 8 additions & 0 deletions http-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a
[assertFound](#assert-found)
[assertHeader](#assert-header)
[assertHeaderMissing](#assert-header-missing)
[assertInternalServerError](#assert-internal-server-error)
[assertJson](#assert-json)
[assertJsonCount](#assert-json-count)
[assertJsonFragment](#assert-json-fragment)
Expand Down Expand Up @@ -796,6 +797,13 @@ Assert that the given header is not present on the response:

$response->assertHeaderMissing($headerName);

<a name="assert-internal-server-error"></a>
#### assertInternalServerError

Assert that the response has a found (500) HTTP status code:

$response->assertInternalServerError();

<a name="assert-json"></a>
#### assertJson

Expand Down
0