From ec40713848a5b4953c14819f2c3cf3a7bdd09fb2 Mon Sep 17 00:00:00 2001 From: Daniel Cho Date: Fri, 1 Dec 2023 15:39:35 -0500 Subject: [PATCH] fix: update validation errors --- tests/Datasets/MeetingRequestValidationErrors.php | 2 +- tests/Datasets/UpdateEngagementRequestValidationErrors.php | 4 ++-- tests/Datasets/UpdateIndividualRequestValidationErrors.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Datasets/MeetingRequestValidationErrors.php b/tests/Datasets/MeetingRequestValidationErrors.php index df1211e01..6504eac62 100644 --- a/tests/Datasets/MeetingRequestValidationErrors.php +++ b/tests/Datasets/MeetingRequestValidationErrors.php @@ -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' => [ diff --git a/tests/Datasets/UpdateEngagementRequestValidationErrors.php b/tests/Datasets/UpdateEngagementRequestValidationErrors.php index c2f17ce1e..096eb2d57 100644 --- a/tests/Datasets/UpdateEngagementRequestValidationErrors.php +++ b/tests/Datasets/UpdateEngagementRequestValidationErrors.php @@ -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], @@ -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], diff --git a/tests/Datasets/UpdateIndividualRequestValidationErrors.php b/tests/Datasets/UpdateIndividualRequestValidationErrors.php index d72e53738..9a8ef967f 100644 --- a/tests/Datasets/UpdateIndividualRequestValidationErrors.php +++ b/tests/Datasets/UpdateIndividualRequestValidationErrors.php @@ -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']],