diff --git a/app/code/Magento/Directory/etc/zip_codes.xml b/app/code/Magento/Directory/etc/zip_codes.xml index 3c540f7ce0ffd..14d250656d28c 100644 --- a/app/code/Magento/Directory/etc/zip_codes.xml +++ b/app/code/Magento/Directory/etc/zip_codes.xml @@ -64,7 +64,7 @@ - ^[0-9]{5}$ + ^[0-9]{8}$ ^[0-9]{5}\-[0-9]{3}$ diff --git a/dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php b/dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php index 74db33398f721..2a4efd766b7c6 100644 --- a/dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php +++ b/dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php @@ -104,7 +104,7 @@ public function getPostcodesDataProvider() ['countryId' => 'BY', 'postcode' => '123456'], ['countryId' => 'BE', 'postcode' => '1234'], ['countryId' => 'BA', 'postcode' => '12345'], - ['countryId' => 'BR', 'postcode' => '12345'], + ['countryId' => 'BR', 'postcode' => '12345678'], ['countryId' => 'BR', 'postcode' => '12345-678'], ['countryId' => 'BN', 'postcode' => 'PS1234'], ['countryId' => 'BG', 'postcode' => '1234'],