Skip to content

Commit 72368d1

Browse files
committed
ACP2E-3498: Incorrect discount value when multiple cart price rules are applied simultaneously with discounted/special priced products
1 parent 0cde139 commit 72368d1

File tree

1 file changed

+4
-0
lines changed
  • dev/tests/integration/testsuite/Magento/SalesRule/Model/Rule/Action/Discount

1 file changed

+4
-0
lines changed

dev/tests/integration/testsuite/Magento/SalesRule/Model/Rule/Action/Discount/CartFixedTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@
5050
use Magento\Store\Model\StoreManagerInterface;
5151
use Magento\TestFramework\Fixture\DataFixture;
5252
use Magento\TestFramework\Fixture\DataFixtureStorageManager;
53+
use Magento\TestFramework\Fixture\DbIsolation;
5354
use Magento\TestFramework\Helper\Bootstrap;
5455
use PHPUnit\Framework\TestCase;
5556

5657
/**
5758
* Tests for Magento\SalesRule\Model\Rule\Action\Discount\CartFixed.
5859
*
5960
* @magentoAppArea frontend
61+
* @magentoAppIsolation enabled
6062
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
6163
*/
6264
class CartFixedTest extends TestCase
@@ -605,6 +607,7 @@ public function testCarFixedDiscountWithApplyToShippingAmountAfterADiscount(): v
605607
}
606608

607609
#[
610+
DbIsolation(true),
608611
DataFixture(ProductFixture::class, ['price' => 10], 'p1'),
609612
DataFixture(ProductFixture::class, ['price' => 10], 'p2'),
610613
DataFixture(
@@ -672,6 +675,7 @@ public function testFixedAmountToWholeCart2productsAfterPercent1Product(): void
672675
}
673676

674677
#[
678+
DbIsolation(true),
675679
DataFixture(ProductFixture::class, ['price' => 850, 'special_price' => 765], 'p1'),
676680
DataFixture(ProductFixture::class, ['price' => 85, 'special_price' => 68], 'p2'),
677681
DataFixture(

0 commit comments

Comments
 (0)