Skip to content

Commit b035b12

Browse files
author
Mohan Ahuja
committed
ACP2E-1001: Customer Zip Code input validation rule not working
- Fixing static failure
1 parent 1b69e95 commit b035b12

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

app/code/Magento/Customer/Test/Unit/Model/Metadata/Form/PostcodeTest.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,19 @@ public function validateValueLengthDataProvider(): array
187187
'thousand' => ['10000', true],
188188
'L6' => ['666666', true],
189189
'L7' => ['6666666', '"" length must be equal or less than 6 characters.'],
190-
'S1' => ['s', ['"" length must be equal or greater than 5 characters.', "notDigits" => '"" contains non-numeric characters.']],
190+
'S1' => ['s',
191+
[
192+
'"" length must be equal or greater than 5 characters.',
193+
"notDigits" => '"" contains non-numeric characters.'
194+
]
195+
],
191196
'S6' => ['string', ["notDigits" => '"" contains non-numeric characters.']],
192-
'S7' => ['strings', ['"" length must be equal or less than 6 characters.', "notDigits" => '"" contains non-numeric characters.']],
197+
'S7' => ['strings',
198+
[
199+
'"" length must be equal or less than 6 characters.',
200+
"notDigits" => '"" contains non-numeric characters.'
201+
]
202+
],
193203
'L6s' => ['66666s', ["notDigits" => '"" contains non-numeric characters.']],
194204
];
195205
}

0 commit comments

Comments
 (0)