mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 12:23:44 +02:00
Fix integration tests to properly account for the rule position in the API
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user