We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code below is expected to create an order via OrderBuilder with specific customer:
OrderBuilder
$customerBuilder = CustomerBuilder::aCustomer()->withAddresses( AddressBuilder::anAddress()->asDefaultBilling(), AddressBuilder::anAddress()->asDefaultShipping() ); $customerFixture = new CustomerFixture($customerBuilder->build()); $order = OrderBuilder::anOrder() ->withCustomer($customerBuilder) ->withProducts( ProductBuilder::aVirtualProduct()->withSku(RequiredPurchase::FLOATING_SERVER_SKU) ) ->build(); echo $order->getRealOrderId() . "\n"; echo $order->getCustomerId() . "\n"; echo $customerFixture->getId();
The output is the following:
000000064 656 655
As you can see the OrderBuilder has created a new customer.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The code below is expected to create an order via
OrderBuilder
with specific customer:The output is the following:
As you can see the
OrderBuilder
has created a new customer.The text was updated successfully, but these errors were encountered: