Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing unit test testParseAddressUnknown #62

Open
ericclaeren opened this issue May 18, 2021 · 0 comments
Open

Failing unit test testParseAddressUnknown #62

ericclaeren opened this issue May 18, 2021 · 0 comments

Comments

@ericclaeren
Copy link
Contributor

Hi,

When executing the unit test for:

php ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/paazl/magento2-checkout-widget/Test/Unit/Model/Api/Builder/OrderTest.php

The expected result was all tests succeeded.

The result was:

PHPUnit 6.2.4 by Sebastian Bergmann and contributors.

....................EEE.....                                                                                            28 / 28 (100%)

Time: 257 ms, Memory: 8.00MB

There were 3 errors:

1) Paazl\CheckoutWidget\Test\Unit\Model\Api\Builder\OrderTest::testParseAddressUnknown with data set #0 (array('spaarne'), array('spaarne', '0', ''))
Magento\Framework\Exception\LocalizedException: This order cannot be committed to Paazl, please make sure the address has a valid housenumber.

/Users/ericclaeren/Projects/valet/mj/vendor/paazl/magento2-checkout-widget/Model/Api/Builder/Order.php:272
/Users/ericclaeren/Projects/valet/mj/vendor/paazl/magento2-checkout-widget/Test/Unit/Model/Api/Builder/OrderTest.php:194

2) Paazl\CheckoutWidget\Test\Unit\Model\Api\Builder\OrderTest::testParseAddressUnknown with data set #1 (array(' Diemerkade str. '), array('Diemerkade str.', '0', ''))
Magento\Framework\Exception\LocalizedException: This order cannot be committed to Paazl, please make sure the address has a valid housenumber.

/Users/ericclaeren/Projects/valet/mj/vendor/paazl/magento2-checkout-widget/Model/Api/Builder/Order.php:272
/Users/ericclaeren/Projects/valet/mj/vendor/paazl/magento2-checkout-widget/Test/Unit/Model/Api/Builder/OrderTest.php:194

3) Paazl\CheckoutWidget\Test\Unit\Model\Api\Builder\OrderTest::testParseAddressUnknown with data set #2 (array('Straat72test'), array('Straat72test', '0', ''))
Magento\Framework\Exception\LocalizedException: This order cannot be committed to Paazl, please make sure the address has a valid housenumber.

/Users/ericclaeren/Projects/valet/mj/vendor/paazl/magento2-checkout-widget/Model/Api/Builder/Order.php:272
/Users/ericclaeren/Projects/valet/mj/vendor/paazl/magento2-checkout-widget/Test/Unit/Model/Api/Builder/OrderTest.php:194

ERRORS!
Tests: 28, Assertions: 50, Errors: 3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant