Skip to content

Commit 56cec9e

Browse files
committed
ACP2E-10: Incorrect Discount: Two Cart rules with and without coupon
1 parent a8f9956 commit 56cec9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ public function testProcess(): void
274274
{
275275
$negativePrice = -1;
276276

277+
$rule = $this->createMock(Rule::class);
277278
$this->item->setDiscountCalculationPrice($negativePrice);
278279
$this->item->setData('calculation_price', $negativePrice);
279280

@@ -284,7 +285,7 @@ public function testProcess(): void
284285
$this->model->getCustomerGroupId(),
285286
$this->model->getCouponCode()
286287
);
287-
$this->model->process($this->item);
288+
$this->model->process($this->item, $rule);
288289
}
289290

290291
/**

0 commit comments

Comments
 (0)