Skip to content

Commit

Permalink
fix: update validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chosww committed Dec 1, 2023
1 parent 46a82ed commit ec40713
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Datasets/MeetingRequestValidationErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
'Title is not a string' => [
['title' => ['en' => false]],
fn () => ['title.en' => __('validation.string', ['attribute' => 'title.en'])],
fn () => ['title.en' => __('validation.string', ['attribute' => __('meeting title (English)')])],
['meetingType' => MeetingType::InPerson->value],
],
'Date missing' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/Datasets/UpdateEngagementRequestValidationErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
'Name translation is not a string' => [
'state' => ['name.en' => false],
'errors' => fn () => ['name.en' => __('validation.string', ['attribute' => 'name.en'])],
'errors' => fn () => ['name.en' => __('validation.string', ['attribute' => __('engagement name (English)')])],
],
'Description is missing' => [
['description' => null],
Expand All @@ -43,7 +43,7 @@
],
'Description translation is not a string' => [
'state' => ['description.en' => false],
'errors' => fn () => ['description.en' => __('validation.string', ['attribute' => 'description.en'])],
'errors' => fn () => ['description.en' => __('validation.string', ['attribute' => __('engagement description (English)')])],
],
'Window start date is missing' => [
['window_start_date' => null],
Expand Down
2 changes: 1 addition & 1 deletion tests/Datasets/UpdateIndividualRequestValidationErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
'Bio translation not a string' => [
['bio' => ['en' => [123]]],
fn () => ['bio.en' => __('validation.string', ['attribute' => 'bio.en'])],
fn () => ['bio.en' => __('validation.string', ['attribute' => __('bio (English)')])],
],
'Bio missing required translation' => [
['bio' => ['es' => 'biografía']],
Expand Down

0 comments on commit ec40713

Please sign in to comment.