From 1c903a93e47f0c0a12768a1066796464ab7f3591 Mon Sep 17 00:00:00 2001 From: Dmytro Horytskyi Date: Wed, 13 Sep 2023 12:46:13 -0500 Subject: [PATCH] ACP2E-2355: Integration Test failing --- app/code/Magento/Sales/Test/Fixture/Creditmemo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Sales/Test/Fixture/Creditmemo.php b/app/code/Magento/Sales/Test/Fixture/Creditmemo.php index 86695b23e489c..8e74f1c8b628b 100644 --- a/app/code/Magento/Sales/Test/Fixture/Creditmemo.php +++ b/app/code/Magento/Sales/Test/Fixture/Creditmemo.php @@ -130,7 +130,7 @@ private function prepareCreditmemoItems(array $data): array } elseif ($itemToRefund instanceof ProductInterface) { $creditmemoItem['order_item_id'] = $orderItemIdsBySku[$itemToRefund->getSku()]; } else { - $creditmemoItem = array_intersect($itemToRefund, $creditmemoItem) + $creditmemoItem; + $creditmemoItem = array_intersect_key($itemToRefund, $creditmemoItem) + $creditmemoItem; if (isset($itemToRefund['sku'])) { $creditmemoItem['order_item_id'] = $orderItemIdsBySku[$itemToRefund['sku']]; } elseif (isset($itemToRefund['product_id'])) {