static::
expectException($exceptionClass);
} $cart =
$this->
getCart();
$cart->
setDeliveries( $this->
getDeliveryCollection( $exceptionClass === DeliveryWithoutAddressException::
class D
);
$conversionContext =
new OrderConversionContext();
$conversionContext->
setIncludeCustomer($conversionIncludeCustomer);
$salesChannelContext =
$this->
getSalesChannelContext( $loginCustomer,
$exceptionClass === AddressNotFoundException::
class D;
$result =
$this->orderConverter->
convertToOrder($cart,
$salesChannelContext,
$conversionContext);
// unset uncheckable ids
unset($result['id'
]);
unset($result['billingAddressId'
]);