|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Member Functions | |
| assertUnauthorizedException ($serviceInfo, $requestData=null) | |
| _assertRestUnauthorizedException ($serviceInfo, $requestData=null) | |
| _assertNoRouteOrOperationException ($serviceInfo, $requestData=null) | |
| _assertNoRestRouteException ($serviceInfo, $requestData=null) | |
| _assertSoapException ($serviceInfo, $requestData=null, $expectedMessage='') | |
Protected Member Functions inherited from WebapiAbstract | |
| 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) | |
Additional Inherited Members | |
Public Member Functions inherited from WebapiAbstract | |
| addModelToDelete ($model, $secure=false) | |
| processRestExceptionResult (\Exception $e) | |
Static Public Member Functions inherited from WebapiAbstract | |
| static | setUpBeforeClass () |
| static | tearDownAfterClass () |
| static | setFixture ($key, $fixture, $tearDown=self::AUTO_TEAR_DOWN_AFTER_METHOD) |
| static | getFixture ($key) |
| static | callModelDelete ($model, $secure=false) |
| static | deleteFixture ($key, $secure=false) |
Data Fields inherited from WebapiAbstract | |
| const | AUTO_TEAR_DOWN_DISABLED = 0 |
| const | AUTO_TEAR_DOWN_AFTER_METHOD = 1 |
| const | AUTO_TEAR_DOWN_AFTER_CLASS = 2 |
| const | ADAPTER_SOAP = 'soap' |
| const | ADAPTER_REST = 'rest' |
Static Protected Member Functions inherited from WebapiAbstract | |
| static | _setFixtureNamespace () |
| static | _unsetFixtureNamespace () |
| static | _getFixtureNamespace () |
| static | _deleteFixtures ($fixtures) |
Protected Attributes inherited from WebapiAbstract | |
| $_appCache | |
| $_modelsToDelete = [] | |
| $_origConfigValues = [] | |
| $_webApiAdapters | |
| $_webApiAdaptersMap | |
Static Protected Attributes inherited from WebapiAbstract | |
| static | $_fixturesNamespace |
| static | $_fixtures = [] |
| static | $_methodLevelFixtures = [] |
| static | $_classLevelFixtures = [] |
Base class for all Service based routing tests
Definition at line 14 of file BaseService.php.
|
protected |
Invoke the REST api and assert for test cases that no such REST route exist
| array | $serviceInfo | |
| array | null | $requestData |
Definition at line 80 of file BaseService.php.
|
protected |
Check a particular adapter and assert the exception
| array | $serviceInfo | |
| array | null | $requestData |
Definition at line 65 of file BaseService.php.
|
protected |
Invoke the REST api and assert access is unauthorized
| array | $serviceInfo | |
| array | null | $requestData |
Definition at line 41 of file BaseService.php.
|
protected |
Invoke the SOAP api and assert for the NoWebApiXmlTestTest test cases that no such SOAP route exists
| array | $serviceInfo | |
| array | null | $requestData | |
| string | $expectedMessage |
Definition at line 98 of file BaseService.php.
|
protected |
Check a particular adapter and assert unauthorized access
| array | $serviceInfo | |
| array | null | $requestData |
Definition at line 22 of file BaseService.php.