Fix integration tests to properly account for the rule position in the API
This commit is contained in:
parent
f293c73977
commit
1e19e02398
9 changed files with 14 additions and 13 deletions
|
@ -63,7 +63,7 @@ class NetworkAllocationControllerTest extends ClientApiIntegrationTestCase
|
|||
|
||||
$this->actingAs($user)->postJson($this->link($allocation), [])
|
||||
->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)
|
||||
->assertJsonPath('errors.0.code', 'present');
|
||||
->assertJsonPath('errors.0.meta.rule', 'present');
|
||||
|
||||
$this->actingAs($user)->postJson($this->link($allocation), ['notes' => 'Test notes'])
|
||||
->assertOk()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue