Skip to content

Commit c3dfeff

Browse files
committed
MC-17003: Update Totals button is missing from Credit Memo page
1 parent f2eee58 commit c3dfeff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Creditmemo/Totals.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\Sales\Test\Block\Adminhtml\Order\Creditmemo;
810

911
use Magento\Mtf\Client\Locator;

dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/CreateCreditMemoStep.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magento\Sales\Test\TestStep;
810

911
use Magento\Checkout\Test\Fixture\Cart;
@@ -138,7 +140,7 @@ private function isTotalsDataChanged(array $data): bool
138140
];
139141

140142
foreach ($compareData as $fieldName => $fieldValue) {
141-
if (isset($data['form_data'][$fieldName]) && $fieldValue != $data['form_data'][$fieldName]) {
143+
if (isset($data['form_data'][$fieldName]) && $fieldValue !== $data['form_data'][$fieldName]) {
142144
return true;
143145
}
144146
}

0 commit comments

Comments
 (0)