'deliveries.shippingOrderAddress',
]);
/** @var OrderEntity $order */
$order =
$this->orderRepository->
search($criteria,
$this->salesChannelContext->
getContext())->
first();
$deliveries =
$order->
getDeliveries();
static::
assertNotNull($deliveries);
$delivery =
$deliveries->
first();
static::
assertNotNull($delivery);
$orderDeliveryId =
$delivery->
getId();
$this->orderService->
orderDeliveryStateTransition( $orderDeliveryId,
'ship',
new RequestDataBag(),
$this->salesChannelContext->
getContext() );
/** @var OrderEntity $updatedOrder */
$updatedOrder =
$this->orderRepository->
search($criteria,
$this->salesChannelContext->
getContext())->
first();
$deliveries =
$updatedOrder->
getDeliveries();
static::
assertNotNull($deliveries);
$delivery =
$deliveries->
first();