Return integration tests to passing state

This commit is contained in:
Dane Everitt 2020-08-27 21:22:05 -07:00
parent 1e19e02398
commit 90ba76c237
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 8 additions and 7 deletions

View file

@ -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)