changed two other wrong http codes
This commit is contained in:
parent
bf8a7b53ff
commit
006912eafe
|
@ -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,
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue