@@ -111,7 +111,7 @@ public function testItCanExcludeValidationRulesWhenPrecognitiveWithFormRequest()
111
111
$ response ->assertStatus (422 );
112
112
$ response ->assertJsonPath ('errors ' , [
113
113
'required_integer ' => [
114
- 'The required integer must be an integer. ' ,
114
+ 'The required integer field must be an integer. ' ,
115
115
],
116
116
]);
117
117
}
@@ -129,10 +129,10 @@ public function testItRunsExcludedRulesWhenNotPrecognitiveForFormRequest()
129
129
$ response ->assertStatus (422 );
130
130
$ response ->assertJsonPath ('errors ' , [
131
131
'required_integer ' => [
132
- 'The required integer must be an integer. ' ,
132
+ 'The required integer field must be an integer. ' ,
133
133
],
134
134
'required_integer_when_not_precognitive ' => [
135
- 'The required integer when not precognitive must be an integer. ' ,
135
+ 'The required integer when not precognitive field must be an integer. ' ,
136
136
],
137
137
]);
138
138
}
@@ -154,10 +154,10 @@ public function testClientCanSpecifyInputToValidate()
154
154
$ response ->assertStatus (422 );
155
155
$ response ->assertJsonPath ('errors ' , [
156
156
'optional_integer_1 ' => [
157
- 'The optional integer 1 must be an integer. ' ,
157
+ 'The optional integer 1 field must be an integer. ' ,
158
158
],
159
159
'optional_integer_2 ' => [
160
- 'The optional integer 2 must be an integer. ' ,
160
+ 'The optional integer 2 field must be an integer. ' ,
161
161
],
162
162
]);
163
163
}
@@ -302,10 +302,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidate(
302
302
$ response ->assertStatus (422 );
303
303
$ response ->assertJsonPath ('errors ' , [
304
304
'optional_integer_1 ' => [
305
- 'The optional integer 1 must be an integer. ' ,
305
+ 'The optional integer 1 field must be an integer. ' ,
306
306
],
307
307
'optional_integer_2 ' => [
308
- 'The optional integer 2 must be an integer. ' ,
308
+ 'The optional integer 2 field must be an integer. ' ,
309
309
],
310
310
]);
311
311
}
@@ -328,10 +328,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidateW
328
328
$ response ->assertStatus (422 );
329
329
$ response ->assertJsonPath ('errors ' , [
330
330
'optional_integer_1 ' => [
331
- 'The optional integer 1 must be an integer. ' ,
331
+ 'The optional integer 1 field must be an integer. ' ,
332
332
],
333
333
'optional_integer_2 ' => [
334
- 'The optional integer 2 must be an integer. ' ,
334
+ 'The optional integer 2 field must be an integer. ' ,
335
335
],
336
336
]);
337
337
}
@@ -365,10 +365,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingRequestValidate()
365
365
$ response ->assertStatus (422 );
366
366
$ response ->assertJsonPath ('errors ' , [
367
367
'optional_integer_1 ' => [
368
- 'The optional integer 1 must be an integer. ' ,
368
+ 'The optional integer 1 field must be an integer. ' ,
369
369
],
370
370
'optional_integer_2 ' => [
371
- 'The optional integer 2 must be an integer. ' ,
371
+ 'The optional integer 2 field must be an integer. ' ,
372
372
],
373
373
]);
374
374
}
@@ -403,10 +403,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingRequestValidateWith
403
403
$ response ->assertStatus (422 );
404
404
$ response ->assertJsonPath ('errors ' , [
405
405
'optional_integer_1 ' => [
406
- 'The optional integer 1 must be an integer. ' ,
406
+ 'The optional integer 1 field must be an integer. ' ,
407
407
],
408
408
'optional_integer_2 ' => [
409
- 'The optional integer 2 must be an integer. ' ,
409
+ 'The optional integer 2 field must be an integer. ' ,
410
410
],
411
411
]);
412
412
}
@@ -429,10 +429,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidateW
429
429
$ response ->assertStatus (422 );
430
430
$ response ->assertJsonPath ('errors ' , [
431
431
'optional_integer_1 ' => [
432
- 'The optional integer 1 must be an integer. ' ,
432
+ 'The optional integer 1 field must be an integer. ' ,
433
433
],
434
434
'optional_integer_2 ' => [
435
- 'The optional integer 2 must be an integer. ' ,
435
+ 'The optional integer 2 field must be an integer. ' ,
436
436
],
437
437
]);
438
438
}
@@ -467,7 +467,7 @@ public function testSpacesAreImportantInValidationFilterLogicForJsonRequests()
467
467
$ response ->assertStatus (422 );
468
468
$ response ->assertJsonPath ('errors ' , [
469
469
' input with spaces ' => [
470
- 'The input with spaces must be an integer. ' ,
470
+ 'The input with spaces field must be an integer. ' ,
471
471
],
472
472
]);
473
473
}
0 commit comments