changed two other wrong http codes

This commit is contained in:
Julian Martin 2018-04-13 11:27:52 +02:00 committed by GitHub
parent bf8a7b53ff
commit 006912eafe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ Laravel also provides several helpers for testing JSON APIs and their responses.
$response = $this->json('POST', '/user', ['name' => 'Sally']);
$response
->assertStatus(200)
->assertStatus(201)
->assertJson([
'created' => true,
]);
@ -154,7 +154,7 @@ If you would like to verify that the given array is an **exact** match for the J
$response = $this->json('POST', '/user', ['name' => 'Sally']);
$response
->assertStatus(200)
->assertStatus(201)
->assertExactJson([
'created' => true,
]);