Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-inventory-source-selection-api
Test
Api
GetSourceSelectionAlgorithmListTest.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventorySourceSelectionApi\Test\Api
;
9
10
use
Magento\Framework\Webapi\Rest\Request
;
11
use
Magento\TestFramework\TestCase\WebapiAbstract
;
12
13
class
GetSourceSelectionAlgorithmListTest
extends
WebapiAbstract
14
{
18
const
RESOURCE_PATH
=
'/V1/inventory/source-selection-algorithm-list'
;
19
const
SERVICE_NAME
=
'inventorySourceSelectionApiGetSourceSelectionAlgorithmListV1'
;
22
public
function
testGetSourceSelectionAlgorithmList
()
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
}
Magento\InventorySourceSelectionApi\Test\Api
Definition:
GetSourceSelectionAlgorithmListTest.php:8
Magento\TestFramework\TestCase\WebapiAbstract\_webApiCall
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
Definition:
WebapiAbstract.php:165
Magento\Framework\Webapi\Rest\Request\HTTP_METHOD_GET
const HTTP_METHOD_GET
Definition:
Request.php:19
Magento\InventorySourceSelectionApi\Test\Api\GetSourceSelectionAlgorithmListTest\testGetSourceSelectionAlgorithmList
testGetSourceSelectionAlgorithmList()
Definition:
GetSourceSelectionAlgorithmListTest.php:22
Magento\Framework\Webapi\Rest\Request
Magento\TestFramework\TestCase\WebapiAbstract
Definition:
WebapiAbstract.php:19
Magento\InventorySourceSelectionApi\Test\Api\GetSourceSelectionAlgorithmListTest\RESOURCE_PATH
const RESOURCE_PATH
Definition:
GetSourceSelectionAlgorithmListTest.php:18
Magento\InventorySourceSelectionApi\Test\Api\GetSourceSelectionAlgorithmListTest\SERVICE_NAME
const SERVICE_NAME
Definition:
GetSourceSelectionAlgorithmListTest.php:19
Magento\TestFramework\TestCase\WebapiAbstract\ADAPTER_REST
const ADAPTER_REST
Definition:
WebapiAbstract.php:34
Magento\InventorySourceSelectionApi\Test\Api\GetSourceSelectionAlgorithmListTest
Definition:
GetSourceSelectionAlgorithmListTest.php:13