1, 'qty' => $qty, 'pageSize' => $pageSize, 'currentPage' => $currentPage]; $serviceInfo = [ 'rest' => [ 'resourcePath' => self::RESOURCE_PATH . '?' . http_build_query($requestData), 'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET, ], 'soap' => [ 'service' => 'catalogInventoryStockRegistryV1', 'serviceVersion' => self::SERVICE_VERSION, 'operation' => 'catalogInventoryStockRegistryV1GetLowStockItems', ], ]; $output = $this->_webApiCall($serviceInfo, $requestData); $this->assertArrayHasKey('items', $output); } /** * @return array */ public function getLowStockItemsDataProvider() { return [ [ 100, 1, 10, [ 'search_criteria' => ['current_page' => 1, 'page_size' => 10, 'qty' => 100], 'total_count' => 2, 'items' => [ [ 'product_id' => 10, 'scope_id' => 1, 'stock_id' => 1, 'qty' => 100, 'stock_status' => null, 'stock_item' => null, ], [ 'product_id' => 12, 'website_id' => 1, 'scope_id' => 1, 'qty' => 140, 'stock_status' => null, 'stock_item' => null ], ] ], ], ]; } }