Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GetSourceSelectionAlgorithmListTest.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
14 {
18  const RESOURCE_PATH = '/V1/inventory/source-selection-algorithm-list';
19  const SERVICE_NAME = 'inventorySourceSelectionApiGetSourceSelectionAlgorithmListV1';
23  {
24  $serviceInfo = [
25  'rest' => [
26  'resourcePath' => self::RESOURCE_PATH,
27  'httpMethod' => Request::HTTP_METHOD_GET,
28  ],
29  'soap' => [
30  'service' => self::SERVICE_NAME,
31  'operation' => self::SERVICE_NAME . 'Execute',
32  ],
33  ];
34 
35  $sourceSelectionAlgorithmList = (TESTS_WEB_API_ADAPTER === self::ADAPTER_REST)
36  ? $this->_webApiCall($serviceInfo)
37  : $this->_webApiCall($serviceInfo);
38 
39  self::assertInternalType('array', $sourceSelectionAlgorithmList);
40  self::assertNotEmpty($sourceSelectionAlgorithmList);
41  }
42 }
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)