Skip to content

Commit 243a457

Browse files
committed
MAGETWO-45311: Remove dependency on Website for Cataloginventory
- Changed website to scope
1 parent c74965d commit 243a457

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class LowStockItemsTest extends WebapiAbstract
2626
*/
2727
public function testGetLowStockItems($qty, $currentPage, $pageSize, $result)
2828
{
29-
$requestData = ['qty' => $qty, 'pageSize' => $pageSize, 'currentPage' => $currentPage];
29+
$requestData = ['scopeId' => 1, 'qty' => $qty, 'pageSize' => $pageSize, 'currentPage' => $currentPage];
3030
$serviceInfo = [
3131
'rest' => [
3232
'resourcePath' => self::RESOURCE_PATH . '?' . http_build_query($requestData),
@@ -58,14 +58,16 @@ public function getLowStockItemsDataProvider()
5858
'items' => [
5959
[
6060
'product_id' => 10,
61+
'scope_id' => 1,
6162
'stock_id' => 1,
6263
'qty' => 100,
6364
'stock_status' => null,
6465
'stock_item' => null,
6566
],
6667
[
6768
'product_id' => 12,
68-
'stock_id' => 1,
69+
'website_id' => 1,
70+
'scope_id' => 1,
6971
'qty' => 140,
7072
'stock_status' => null,
7173
'stock_item' => null

0 commit comments

Comments
 (0)