Skip to content

Commit 8941aac

Browse files
author
Yu Tang
committed
MAGETWO-33661: Refactor CatalogInventory module to use mutable data object interfaces
- Fix api-functional soap test failure
1 parent a333df2 commit 8941aac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/api-functional/testsuite/Magento/CatalogInventory/Api/StockItemTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ public function testStockItemPUTWithWrongInput($newData, $expectedResult, $fixtu
121121
$newData,
122122
'\Magento\CatalogInventory\Api\Data\StockItemInterface'
123123
);
124-
$arguments = ['productSku' => $productSku, 'stockItem' => $stockItemDetailsDo->getData()];
124+
$data = $stockItemDetailsDo->getData();
125+
$data['show_default_notification_message'] = false;
126+
$arguments = ['productSku' => $productSku, 'stockItem' => $data];
125127
$this->assertEquals($stockItemOld['item_id'], $this->_webApiCall($serviceInfo, $arguments));
126128

127129
$stockItemFactory = $this->objectManager->get('Magento\CatalogInventory\Api\Data\StockItemInterfaceFactory');

0 commit comments

Comments
 (0)