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 5aefff1 commit ff92690Copy full SHA for ff92690
app/code/Magento/Quote/Test/Unit/Model/Quote/Item/AbstractItemTest.php
@@ -82,6 +82,7 @@ public static function dataProviderGetTotalDiscountAmount()
82
$testCase->getMockForAbstractItem($childTwoDiscountAmount);
83
84
$valueHasNoEffect = 0;
85
+ $parentDiscountAmount = 10;
86
87
$data = [
88
'no_children' => [
@@ -97,10 +98,10 @@ public static function dataProviderGetTotalDiscountAmount()
97
98
10,
99
],
100
'one_kid' => [
- $childOneDiscountAmount,
101
+ $childOneDiscountAmount + $parentDiscountAmount,
102
[$childOneItemMock],
103
true,
- $valueHasNoEffect,
104
+ $parentDiscountAmount,
105
106
'two_kids' => [
107
$childOneDiscountAmount + $childTwoDiscountAmount,
0 commit comments