|
| | setUp () |
| |
| | assertUnauthorizedException ($serviceInfo, $requestData=null) |
| |
| | _assertRestUnauthorizedException ($serviceInfo, $requestData=null) |
| |
| | _assertNoRouteOrOperationException ($serviceInfo, $requestData=null) |
| |
| | _assertNoRestRouteException ($serviceInfo, $requestData=null) |
| |
| | _assertSoapException ($serviceInfo, $requestData=null, $expectedMessage='') |
| |
| | tearDown () |
| |
| | _webApiCall ( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null) |
| |
| | _markTestAsSoapOnly ($message=null) |
| |
| | _markTestAsRestOnly ($message=null) |
| |
| | _getWebApiAdapter ($webApiAdapterCode) |
| |
| | _assertMessagesEqual ($expectedMessages, $receivedMessages) |
| |
| | _cleanAppConfigCache () |
| |
| | _restoreAppConfig () |
| |
| | checkSoapFault ( $soapFault, $expectedMessage, $expectedFaultCode, $expectedErrorParams=[], $expectedWrappedErrors=[], $traceString=null) |
| |
| | _checkFaultParams ($expectedErrorParams, $errorDetails) |
| |
| | _checkWrappedErrors ($expectedWrappedErrors, $errorDetails) |
| |
Definition at line 12 of file SubsetTest.php.
◆ setUp()
@Override
Definition at line 32 of file SubsetTest.php.
34 $this->_version =
'V1';
35 $this->_restResourcePath =
"/{$this->_version}/testModule2SubsetRest/";
36 $this->_soapService =
'testModule2SubsetRestV1';
◆ testItem()
@Override Test get item
Definition at line 43 of file SubsetTest.php.
48 'resourcePath' => $this->_restResourcePath . $itemId,
55 $this->assertEquals($itemId,
$item[
'id'],
'Item was retrieved unsuccessfully');
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
◆ testItems()
@Override Test fetching all items
Definition at line 62 of file SubsetTest.php.
64 $itemArr = [[
'id' => 1,
'name' =>
'testItem1'], [
'id' => 2,
'name' =>
'testItem2']];
74 $this->assertEquals($itemArr,
$item,
'Items were not retrieved');
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
◆ $_restResourcePath
◆ $_soapService
◆ $_version
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/api-functional/testsuite/Magento/Webapi/Routing/SubsetTest.php