Skip to content

Commit 33387c7

Browse files
authored
Merge pull request #46034 from laravel/fix/test-suite-precognition-tests
[10.x] Fixes precognition related tests
2 parents 59790e1 + 8d7b36b commit 33387c7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/Integration/Routing/PrecognitionTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testItCanExcludeValidationRulesWhenPrecognitiveWithFormRequest()
111111
$response->assertStatus(422);
112112
$response->assertJsonPath('errors', [
113113
'required_integer' => [
114-
'The required integer must be an integer.',
114+
'The required integer field must be an integer.',
115115
],
116116
]);
117117
}
@@ -129,10 +129,10 @@ public function testItRunsExcludedRulesWhenNotPrecognitiveForFormRequest()
129129
$response->assertStatus(422);
130130
$response->assertJsonPath('errors', [
131131
'required_integer' => [
132-
'The required integer must be an integer.',
132+
'The required integer field must be an integer.',
133133
],
134134
'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.',
136136
],
137137
]);
138138
}
@@ -154,10 +154,10 @@ public function testClientCanSpecifyInputToValidate()
154154
$response->assertStatus(422);
155155
$response->assertJsonPath('errors', [
156156
'optional_integer_1' => [
157-
'The optional integer 1 must be an integer.',
157+
'The optional integer 1 field must be an integer.',
158158
],
159159
'optional_integer_2' => [
160-
'The optional integer 2 must be an integer.',
160+
'The optional integer 2 field must be an integer.',
161161
],
162162
]);
163163
}
@@ -302,10 +302,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidate(
302302
$response->assertStatus(422);
303303
$response->assertJsonPath('errors', [
304304
'optional_integer_1' => [
305-
'The optional integer 1 must be an integer.',
305+
'The optional integer 1 field must be an integer.',
306306
],
307307
'optional_integer_2' => [
308-
'The optional integer 2 must be an integer.',
308+
'The optional integer 2 field must be an integer.',
309309
],
310310
]);
311311
}
@@ -328,10 +328,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidateW
328328
$response->assertStatus(422);
329329
$response->assertJsonPath('errors', [
330330
'optional_integer_1' => [
331-
'The optional integer 1 must be an integer.',
331+
'The optional integer 1 field must be an integer.',
332332
],
333333
'optional_integer_2' => [
334-
'The optional integer 2 must be an integer.',
334+
'The optional integer 2 field must be an integer.',
335335
],
336336
]);
337337
}
@@ -365,10 +365,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingRequestValidate()
365365
$response->assertStatus(422);
366366
$response->assertJsonPath('errors', [
367367
'optional_integer_1' => [
368-
'The optional integer 1 must be an integer.',
368+
'The optional integer 1 field must be an integer.',
369369
],
370370
'optional_integer_2' => [
371-
'The optional integer 2 must be an integer.',
371+
'The optional integer 2 field must be an integer.',
372372
],
373373
]);
374374
}
@@ -403,10 +403,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingRequestValidateWith
403403
$response->assertStatus(422);
404404
$response->assertJsonPath('errors', [
405405
'optional_integer_1' => [
406-
'The optional integer 1 must be an integer.',
406+
'The optional integer 1 field must be an integer.',
407407
],
408408
'optional_integer_2' => [
409-
'The optional integer 2 must be an integer.',
409+
'The optional integer 2 field must be an integer.',
410410
],
411411
]);
412412
}
@@ -429,10 +429,10 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidateW
429429
$response->assertStatus(422);
430430
$response->assertJsonPath('errors', [
431431
'optional_integer_1' => [
432-
'The optional integer 1 must be an integer.',
432+
'The optional integer 1 field must be an integer.',
433433
],
434434
'optional_integer_2' => [
435-
'The optional integer 2 must be an integer.',
435+
'The optional integer 2 field must be an integer.',
436436
],
437437
]);
438438
}
@@ -467,7 +467,7 @@ public function testSpacesAreImportantInValidationFilterLogicForJsonRequests()
467467
$response->assertStatus(422);
468468
$response->assertJsonPath('errors', [
469469
' input with spaces ' => [
470-
'The input with spaces must be an integer.',
470+
'The input with spaces field must be an integer.',
471471
],
472472
]);
473473
}

0 commit comments

Comments
 (0)