Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit c1a32c6

Browse files
authored
Restore OrderUpdateRequestTest.php
1 parent 3b60110 commit c1a32c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integration/Order/OrderUpdateRequestTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Commercetools\Core\IntegrationTests\Store\StoreFixture;
1616
use Commercetools\Core\IntegrationTests\Type\TypeFixture;
1717
use Commercetools\Core\Model\Cart\CartDraft;
18-
use Commercetools\Core\Model\Cart\CartReference;
1918
use Commercetools\Core\Model\Cart\CartState;
2019
use Commercetools\Core\Model\Cart\ItemShippingDetailsDraft;
2120
use Commercetools\Core\Model\Cart\ItemShippingTarget;
@@ -79,6 +78,8 @@
7978
use Commercetools\Core\Request\Orders\Command\OrderSetDeliveryAddressAction;
8079
use Commercetools\Core\Request\Orders\Command\OrderSetDeliveryAddressCustomFieldAction;
8180
use Commercetools\Core\Request\Orders\Command\OrderSetDeliveryAddressCustomTypeAction;
81+
use Commercetools\Core\Request\Orders\Command\StagedOrderSetDeliveryAddressCustomFieldAction;
82+
use Commercetools\Core\Request\Orders\Command\StagedOrderSetDeliveryAddressCustomTypeAction;
8283
use Commercetools\Core\Request\Orders\Command\OrderSetDeliveryItemsAction;
8384
use Commercetools\Core\Request\Orders\Command\OrderSetItemShippingAddressCustomFieldAction;
8485
use Commercetools\Core\Request\Orders\Command\OrderSetItemShippingAddressCustomTypeAction;
@@ -143,7 +144,7 @@ protected function createOrder(
143144
$cart->getVersion()
144145
);
145146

146-
$orderRequest = OrderCreateFromCartRequest::ofCartAndVersion(CartReference::ofId($cart->getId()), $cart->getVersion());
147+
$orderRequest = OrderCreateFromCartRequest::ofCartIdAndVersion($cart->getId(), $cart->getVersion());
147148
if (!is_null($orderNumber)) {
148149
$orderRequest->setOrderNumber($orderNumber);
149150
}

0 commit comments

Comments
 (0)