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 4a5b47e commit 66e9802Copy full SHA for 66e9802
dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/CreateCreditMemoStep.php
@@ -138,13 +138,12 @@ private function compareRefundTotalsData(array $data): int
138
$this->orderCreditMemoNew->getTotalsBlock()->getAdjustmentFeeElement()->getValue(),
139
];
140
141
- $count = 0;
142
foreach ($compareData as $key => $val) {
143
- if (isset($data['form_data'][$key])) {
144
- $count += ($val != $data['form_data'][$key] ? 1 : 0);
+ if (isset($data['form_data'][$key]) && $val != $data['form_data'][$key]) {
+ return false;
145
}
146
147
148
- return $count;
+ return true;
149
150
0 commit comments