File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/Unit/Laravel/Validation/Rules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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