Closed NoorulBhoelai closed 6 years ago
Fixture used:
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); $customerFixture = new \TddWizard\Fixtures\Customer\CustomerFixture( \TddWizard\Fixtures\Customer\CustomerBuilder::aCustomer() ->withAddresses( \TddWizard\Fixtures\Customer\AddressBuilder::anAddress() ->asDefaultBilling()->asDefaultShipping() ) ->build() ); $product = \TddWizard\Fixtures\Catalog\ProductBuilder::aSimpleProduct() ->withIsInStock(true) ->withStockQty(10) ->withPrice(100) ->build(); $productFixture = new \TddWizard\Fixtures\Catalog\ProductFixture( $product ); $customerFixture->login(); $checkout = \TddWizard\Fixtures\Checkout\CustomerCheckout::fromCart( \TddWizard\Fixtures\Checkout\CartBuilder::forCurrentSession() ->withSimpleProduct( $productFixture->getSku() ) ->build() ); $checkout->placeOrder();
It was a bug in another module, some bad configuration etc/config.xml.
Fixture used: