Skip to content

Commit f5b50b9

Browse files
committed
MAGETWO-45311: Remove dependency on Website for Cataloginventory
- Changed webstireId to stockId in test
1 parent 324e32d commit f5b50b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testStockItemPUTWithWrongInput($newData, $expectedResult, $fixtu
120120
$stockItem = $stockItemFactory->create();
121121
/** @var \Magento\CatalogInventory\Model\ResourceModel\Stock\Item $stockItemResource */
122122
$stockItemResource = $this->objectManager->get('Magento\CatalogInventory\Model\ResourceModel\Stock\Item');
123-
$stockItemResource->loadByProductId($stockItem, $stockItemOld['product_id'], $stockItemOld['website_id']);
123+
$stockItemResource->loadByProductId($stockItem, $stockItemOld['product_id'], $stockItemOld['stock_id']);
124124
$expectedResult['item_id'] = $stockItem->getItemId();
125125
$this->assertEquals($expectedResult, array_intersect_key($stockItem->getData(), $expectedResult));
126126
}

0 commit comments

Comments
 (0)