File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev/tests/integration/testsuite/Magento/SalesRule/Plugin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ protected function setUp(): void
72
72
{
73
73
$ this ->objectManager = Bootstrap::getObjectManager ();
74
74
$ this ->usage = $ this ->objectManager ->get (Usage::class);
75
- $ this ->couponUsage = $ this ->objectManager ->get (DataObject::class);
75
+ $ this ->couponUsage = $ this ->objectManager ->create (DataObject::class);
76
76
$ this ->quoteManagement = $ this ->objectManager ->get (QuoteManagement::class);
77
77
$ this ->orderService = $ this ->objectManager ->get (OrderService::class);
78
78
@@ -119,10 +119,10 @@ public function testSubmitQuoteAndCancelOrder()
119
119
$ reservedOrderId = 'test01 ' ;
120
120
121
121
/** @var Coupon $coupon */
122
- $ coupon = $ this ->objectManager ->get (Coupon::class);
122
+ $ coupon = $ this ->objectManager ->create (Coupon::class);
123
123
$ coupon ->loadByCode ($ couponCode );
124
124
/** @var Quote $quote */
125
- $ quote = $ this ->objectManager ->get (Quote::class);
125
+ $ quote = $ this ->objectManager ->create (Quote::class);
126
126
$ quote ->load ($ reservedOrderId , 'reserved_order_id ' );
127
127
128
128
// Make sure coupon usages value is incremented then order is placed.
You can’t perform that action at this time.
0 commit comments