We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982a732 commit ec0c9d6Copy full SHA for ec0c9d6
dev/tests/integration/testsuite/Magento/SalesRule/Model/Coupon/UpdateCouponUsagesTest.php
@@ -111,9 +111,8 @@ public function testCancelOrderBeforeUsageConsumerExecution(): void
111
{
112
$cart = $this->fixtures->get('cart1');
113
$this->couponManagement->set($cart->getId(), 'one_per_customer');
114
- $this->cartManagement->placeOrder($cart->getId());
115
- $cart = $this->cartRepository->get($cart->getId());
116
- $this->orderManagement->cancel($cart->getReservedOrderId());
+ $orderId = $this->cartManagement->placeOrder($cart->getId());
+ $this->orderManagement->cancel($orderId);
117
$consumer = $this->consumerFactory->get('sales.rule.update.coupon.usage');
118
$consumer->process(1);
119
0 commit comments