Skip to content

Commit 743f6a0

Browse files
committed
MC-40450: [Integration] Magento\SalesRule\Plugin\CouponUsagesTest failure on 2.4-develop
1 parent f9ebf90 commit 743f6a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/SalesRule/Plugin/CouponUsagesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function setUp(): void
7272
{
7373
$this->objectManager = Bootstrap::getObjectManager();
7474
$this->usage = $this->objectManager->get(Usage::class);
75-
$this->couponUsage = $this->objectManager->get(DataObject::class);
75+
$this->couponUsage = $this->objectManager->create(DataObject::class);
7676
$this->quoteManagement = $this->objectManager->get(QuoteManagement::class);
7777
$this->orderService = $this->objectManager->get(OrderService::class);
7878

@@ -119,10 +119,10 @@ public function testSubmitQuoteAndCancelOrder()
119119
$reservedOrderId = 'test01';
120120

121121
/** @var Coupon $coupon */
122-
$coupon = $this->objectManager->get(Coupon::class);
122+
$coupon = $this->objectManager->create(Coupon::class);
123123
$coupon->loadByCode($couponCode);
124124
/** @var Quote $quote */
125-
$quote = $this->objectManager->get(Quote::class);
125+
$quote = $this->objectManager->create(Quote::class);
126126
$quote->load($reservedOrderId, 'reserved_order_id');
127127

128128
// Make sure coupon usages value is incremented then order is placed.

0 commit comments

Comments
 (0)