Skip to content

Some locales can't be used for AddressBuilder #96

@bartoszkubicki

Description

@bartoszkubicki

The following error is thrown:

InvalidArgumentException: Unknown format "state"

/var/www/html/vendor/fakerphp/faker/src/Faker/Generator.php:743
/var/www/html/vendor/fakerphp/faker/src/Faker/Generator.php:708
/var/www/html/vendor/fakerphp/faker/src/Faker/Generator.php:964
/var/www/html/vendor/tddwizard/magento2-fixtures/src/Customer/AddressBuilder.php:196
/var/www/html/vendor/tddwizard/magento2-fixtures/src/Customer/AddressBuilder.php:46

if a country without a formatter for the region is used. Please compare Germany and UK. At the moment it's not possible to use UK locale.

Image Image

This line throws an exception again, but that's never caught. Instead of that region should be resolved quietly and it should be assigned as null if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions