Return integration tests to passing state
This commit is contained in:
parent
1e19e02398
commit
90ba76c237
2 changed files with 8 additions and 7 deletions
|
@ -57,8 +57,9 @@ class CreateServerScheduleTest extends ClientApiIntegrationTestCase
|
|||
|
||||
$response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);
|
||||
foreach (['name', 'minute', 'hour', 'day_of_month', 'day_of_week'] as $i => $field) {
|
||||
$response->assertJsonPath("errors.{$i}.code", 'required');
|
||||
$response->assertJsonPath("errors.{$i}.source.field", $field);
|
||||
$response->assertJsonPath("errors.{$i}.code", 'ValidationException');
|
||||
$response->assertJsonPath("errors.{$i}.meta.rule", 'required');
|
||||
$response->assertJsonPath("errors.{$i}.meta.source_field", $field);
|
||||
}
|
||||
|
||||
$this->actingAs($user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue