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.
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: