Skip to content

Commit

Permalink
Use translations as the text may be different between versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Mar 10, 2021
1 parent de8612e commit 01a7eb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Tags/Form/FormCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,10 @@ public function it_can_render_an_inline_error_when_multiple_rules_fail()
preg_match_all('/<p class="inline-error">(.+)<\/p>/U', $output, $inlineErrors);

$expected = [
'The Full Name must be at least 3 characters.',
'The Full Name may only contain letters and numbers.',
'The Email Address field is required.',
'The Message field is required.',
trans('validation.min.string', ['attribute' => 'Full Name', 'min' => 3]), // 'The Full Name must be at least 3 characters.',
trans('validation.alpha_num', ['attribute' => 'Full Name']), // 'The Full Name must only contain letters and numbers.',
trans('validation.required', ['attribute' => 'Email Address']), // 'The Email Address field is required.',
trans('validation.required', ['attribute' => 'Message']), // 'The Message field is required.',
];

$expectedInline = [
Expand Down

0 comments on commit 01a7eb1

Please sign in to comment.