Skip to content

Commit

Permalink
only_when_online isn't actually required
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Dec 3, 2023
1 parent d4fa2b9 commit b4d6184
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testScheduleValidationRules()
$response = $this->actingAs($user)->postJson("/api/client/servers/$server->uuid/schedules", []);

$response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);
foreach (['name', 'only_when_online', 'minute', 'hour', 'day_of_month', 'month', 'day_of_week'] as $i => $field) {
foreach (['name', 'minute', 'hour', 'day_of_month', 'month', 'day_of_week'] as $i => $field) {
$response->assertJsonPath("errors.$i.code", 'ValidationException');
$response->assertJsonPath("errors.$i.meta.rule", 'required');
$response->assertJsonPath("errors.$i.meta.source_field", $field);
Expand Down

0 comments on commit b4d6184

Please sign in to comment.