Skip to content

Commit 8af7d1d

Browse files
committed
ACP2E-793: Discount value is incorrect in GraphQL response
1 parent 70d4fdb commit 8af7d1d

File tree

1 file changed

+7
-2
lines changed
  • app/code/Magento/SalesRule/Test/Unit/Model/Rule/Action/Discount

1 file changed

+7
-2
lines changed

app/code/Magento/SalesRule/Test/Unit/Model/Rule/Action/Discount/ByFixedTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ protected function setUp(): void
6565

6666
$this->model = $helper->getObject(
6767
ByFixed::class,
68-
['discountDataFactory' => $this->discountDataFactory, 'validator' => $this->validator, 'priceCurrency' => $this->priceCurrency]
68+
[
69+
'discountDataFactory' => $this->discountDataFactory,
70+
'validator' => $this->validator,
71+
'priceCurrency' => $this->priceCurrency
72+
]
6973
);
7074
}
7175

@@ -163,7 +167,8 @@ public function testCalculate(
163167
)->method(
164168
'convert'
165169
)->with(
166-
$ruleData['discountAmount'], $store
170+
$ruleData['discountAmount'],
171+
$store
167172
)->willReturn(
168173
$validItemData['baseOriginalPrice']
169174
);

0 commit comments

Comments
 (0)