Skip to content

[12.x] reorder assertions alphabetically #10417

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
Changes from all commits
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
16 changes: 8 additions & 8 deletions http-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -1038,22 +1038,22 @@ Laravel's `Illuminate\Testing\TestResponse` class provides a variety of custom a

</div>

<a name="assert-bad-request"></a>
#### assertBadRequest
<a name="assert-accepted"></a>
#### assertAccepted

Assert that the response has a bad request (400) HTTP status code:
Assert that the response has an accepted (202) HTTP status code:

```php
$response->assertBadRequest();
$response->assertAccepted();
```

<a name="assert-accepted"></a>
#### assertAccepted
<a name="assert-bad-request"></a>
#### assertBadRequest

Assert that the response has an accepted (202) HTTP status code:
Assert that the response has a bad request (400) HTTP status code:

```php
$response->assertAccepted();
$response->assertBadRequest();
```

<a name="assert-client-error"></a>
Expand Down