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
52
52
53
53
protected function throwCard (Closure $ fail ): void
54
54
{
55
- $ fail ('The :attribute must be a valid card number. ' )->translate ();
55
+ $ fail ('The :attribute field must be a valid card number. ' )->translate ();
56
56
}
57
57
58
58
protected function isInvalidType (bool |CardType |null $ type ): bool
Original file line number Diff line number Diff line change 31
31
it ('must be a invalid card number with enum ' , function () {
32
32
expect (
33
33
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. ' );
35
35
});
36
36
37
37
it ('must be a invalid card number with string ' , function () {
38
38
expect (
39
39
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. ' );
41
41
});
42
42
43
43
it ('should check for the valid card type ' , function () {
You can’t perform that action at this time.
0 commit comments