Skip to content

Commit 78afca9

Browse files
committed
This is how tests should pass
1 parent 9b58ad8 commit 78afca9

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

tests/feature/Issues/Issue1334Test.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ function (): void {
3636
FULL_MESSAGE,
3737
[
3838
'__root' => 'These rules must pass for `[["region": "Oregon", "country": "USA", "other": 123], ["street": "", "region": "Oregon", "country": "USA"], ["s ... ]`',
39-
'each' => [
39+
'__each' => [
4040
'__root' => 'Each item in `[["region": "Oregon", "country": "USA", "other": 123], ["street": "", "region": "Oregon", "country": "USA"], ["s ... ]` must be valid',
4141
0 => [
4242
'__root' => 'These rules must pass for `["region": "Oregon", "country": "USA", "other": 123]`',
4343
'street' => 'street must be present',
4444
'other' => [
4545
'__root' => 'These rules must pass for other',
46-
'nullOrStringType' => 'other must be a string or must be null',
46+
'__nullOrStringType' => 'other must be a string or must be null',
4747
],
4848
],
4949
1 => [
5050
'__root' => 'These rules must pass for `["street": "", "region": "Oregon", "country": "USA"]`',
5151
'street' => [
5252
'__root' => 'These rules must pass for street',
53-
'notEmpty' => 'street must not be empty',
53+
'__notEmpty' => 'street must not be empty',
5454
],
5555
],
5656
2 => [
5757
'__root' => 'These rules must pass for `["street": 123, "region": "Oregon", "country": "USA"]`',
5858
'street' => [
5959
'__root' => 'These rules must pass for street',
60-
'stringType' => 'street must be a string',
60+
'__stringType' => 'street must be a string',
6161
],
6262
],
6363
],

tests/feature/Issues/Issue1348Test.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,37 +48,37 @@
4848
FULL_MESSAGE,
4949
[
5050
'__root' => 'These rules must pass for `[["manufacturer": "Honda", "model": "Accord"], ["manufacturer": "Toyota", "model": "Rav4"], ["manufacturer": "Fo ... ]`',
51-
'each' => [
51+
'__each' => [
5252
'__root' => 'Each item in `[["manufacturer": "Honda", "model": "Accord"], ["manufacturer": "Toyota", "model": "Rav4"], ["manufacturer": "Fo ... ]` must be valid',
5353
2 => [
5454
'__root' => 'Only one of these rules must pass for `["manufacturer": "Ford", "model": "not real"]`',
55-
'allOf.1' => [
55+
'__allOf.1' => [
5656
'__root' => 'All the required rules must pass for `["manufacturer": "Ford", "model": "not real"]`',
5757
'manufacturer' => 'manufacturer must be equal to "Honda"',
5858
'model' => 'model must be in `["Accord", "Fit"]`',
5959
],
60-
'allOf.2' => [
60+
'__allOf.2' => [
6161
'__root' => 'All the required rules must pass for `["manufacturer": "Ford", "model": "not real"]`',
6262
'manufacturer' => 'manufacturer must be equal to "Toyota"',
6363
'model' => 'model must be in `["Rav4", "Camry"]`',
6464
],
65-
'allOf.3' => [
65+
'__allOf.3' => [
6666
'__root' => 'These rules must pass for `["manufacturer": "Ford", "model": "not real"]`',
6767
'model' => 'model must be in `["F150", "Bronco"]`',
6868
],
6969
],
7070
3 => [
7171
'__root' => 'Only one of these rules must pass for `["manufacturer": "Honda", "model": "not valid"]`',
72-
'allOf.1' => [
72+
'__allOf.1' => [
7373
'__root' => 'These rules must pass for `["manufacturer": "Honda", "model": "not valid"]`',
7474
'model' => 'model must be in `["Accord", "Fit"]`',
7575
],
76-
'allOf.2' => [
76+
'__allOf.2' => [
7777
'__root' => 'All the required rules must pass for `["manufacturer": "Honda", "model": "not valid"]`',
7878
'manufacturer' => 'manufacturer must be equal to "Toyota"',
7979
'model' => 'model must be in `["Rav4", "Camry"]`',
8080
],
81-
'allOf.3' => [
81+
'__allOf.3' => [
8282
'__root' => 'All the required rules must pass for `["manufacturer": "Honda", "model": "not valid"]`',
8383
'manufacturer' => 'manufacturer must be equal to "Ford"',
8484
'model' => 'model must be in `["F150", "Bronco"]`',

tests/feature/Issues/Issue1376Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
'description' => 'description must be present',
3131
'author' => [
3232
'__root' => 'All the required rules must pass for author',
33-
'intType' => 'author must be an integer',
34-
'lengthBetween' => 'The length of author must be between 1 and 2',
33+
'__intType' => 'author must be an integer',
34+
'__lengthBetween' => 'The length of author must be between 1 and 2',
3535
],
3636
'user' => 'user must be present',
3737
]

tests/feature/Issues/Issue1427Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
],
5757
18 => [
5858
'__root' => 'All the required rules must pass for `false`',
59-
'arrayVal' => '`false` must be an array value',
59+
'__arrayVal' => '`false` must be an array value',
6060
'groups' => 'groups must be present',
6161
'permissions' => 'permissions must be present',
6262
],

0 commit comments

Comments
 (0)