Skip to content
Permalink
Browse files

Documents assertCreated

This pull request documents assertCreated()

Reference: laravel/framework#30368
  • Loading branch information
kennith committed Oct 25, 2019
1 parent 4a4c9b0 commit e94847d9796c4e2ec50a52a14dd860dac6c7641d
Showing with 8 additions and 0 deletions.
  1. +8 −0 http-tests.md
@@ -286,6 +286,7 @@ Laravel provides a variety of custom assertion methods for your [PHPUnit](https:
[assertCookieExpired](#assert-cookie-expired)
[assertCookieNotExpired](#assert-cookie-not-expired)
[assertCookieMissing](#assert-cookie-missing)
[assertCreated](#assert-created)
[assertDontSee](#assert-dont-see)
[assertDontSeeText](#assert-dont-see-text)
[assertExactJson](#assert-exact-json)
@@ -357,6 +358,13 @@ Assert that the response does not contains the given cookie:
$response->assertCookieMissing($cookieName);
<a name="assert-created"></a>
#### assertCreated
Assert that the response has an created (201) status code:
$response->assertCreated();
<a name="assert-dont-see"></a>
#### assertDontSee

0 comments on commit e94847d

Please sign in to comment.
You can’t perform that action at this time.