AddressNotFoundException::
class,
],
[ '',
],
];
} public function testConvertToOrderWithoutDeliveries(): void
{ $cart =
$this->
getCart();
$result =
$this->orderConverter->
convertToOrder($cart,
$this->
getSalesChannelContext(true
),
new OrderConversionContext());
// unset uncheckable ids
unset($result['id'
]);
unset($result['billingAddressId'
]);
unset($result['deepLinkCode'
]);
unset($result['orderDateTime'
]);
unset($result['stateId'
]);
unset($result['languageId'
]);
for ($i = 0;
$i <
(is_countable($result['lineItems'
]) ? \
count($result['lineItems'
]) : 0
); ++
$i) { unset($result['lineItems'
][$i]['id'
]);
}