@@ -54,13 +54,16 @@ public function testRulesTakesEffect(): void
5454 'category ' => 'validation ' ,
5555 'validation ' => [
5656 'profile.fields.name.args.includeMiddleNames ' => [
57- 'The profile.fields.name.args.include middle names format is invalid. ' ,
57+ // The profile.fields.name.args.include middle names format is invalid.',
58+ trans ('validation.regex ' , ['attribute ' => 'profile.fields.name.args.include middle names ' ]),
5859 ],
5960 'profile.fields.height.args.unit ' => [
60- 'The profile.fields.height.args.unit format is invalid. ' ,
61+ // 'The profile.fields.height.args.unit format is invalid.
62+ trans ('validation.regex ' , ['attribute ' => 'profile.fields.height.args.unit ' ]),
6163 ],
6264 'profile.args.profileId ' => [
63- 'The profile.args.profile id must not be greater than 10. ' ,
65+ // The profile.args.profile id must not be greater than 10.
66+ trans ('validation.max.numeric ' , ['attribute ' => 'profile.args.profile id ' , 'max ' => 10 ]),
6467 ],
6568 ],
6669 ],
@@ -113,7 +116,8 @@ public function testOnlyApplicableRulesTakesEffect(): void
113116 'category ' => 'validation ' ,
114117 'validation ' => [
115118 'alias.args.type ' => [
116- 'The alias.args.type format is invalid. ' ,
119+ // The alias.args.type format is invalid.
120+ trans ('validation.regex ' , ['attribute ' => 'alias.args.type ' ]),
117121 ],
118122 ],
119123 ],
0 commit comments