File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Laravel/Validation/Rules
tests/Unit/Laravel/Validation/Rules Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ protected function throwType(Closure $fail): void
5252
5353 protected function throwCard (Closure $ fail ): void
5454 {
55- $ fail ('The :attribute must be a valid card number. ' )->translate ();
55+ $ fail ('The :attribute field must be a valid card number. ' )->translate ();
5656 }
5757
5858 protected function isInvalidType (bool |CardType |null $ type ): bool
Original file line number Diff line number Diff line change 3131it ('must be a invalid card number with enum ' , function () {
3232 expect (
3333 fn () => validateRule (CardNumberRule::class, '2131 1356 1381 3510 ' , CardType::visa)
34- )->toThrow (Exception::class, 'The :attribute must be a valid card number. ' );
34+ )->toThrow (Exception::class, 'The :attribute field must be a valid card number. ' );
3535});
3636
3737it ('must be a invalid card number with string ' , function () {
3838 expect (
3939 fn () => validateRule (CardNumberRule::class, '2131 1356 1381 3510 ' , 'visa ' )
40- )->toThrow (Exception::class, 'The :attribute must be a valid card number. ' );
40+ )->toThrow (Exception::class, 'The :attribute field must be a valid card number. ' );
4141});
4242
4343it ('should check for the valid card type ' , function () {
You can’t perform that action at this time.
0 commit comments