|
| tearDown () |
|
| 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 11 of file IntegrationTest.php.
◆ tearDown()
Definition at line 32 of file IntegrationTest.php.
34 $this->integration =
null;
static clearApiAccessCredentials()
◆ testConfigBasedIntegrationCreation()
testConfigBasedIntegrationCreation |
( |
| ) |
|
Definition at line 39 of file IntegrationTest.php.
42 $this->assertEquals(
'http://example.com/endpoint1', $this->integration->getEndpoint());
43 $this->assertEquals(
'Test Integration1', $this->integration->getName());
◆ testGetServiceCall()
Test simple request data
@depends testConfigBasedIntegrationCreation
Definition at line 52 of file IntegrationTest.php.
59 'resourcePath' =>
'/V1/testmodule4/' . $itemId,
63 $item = $this->
_webApiCall($serviceInfo, [],
null,
null, $this->integration);
64 $this->assertEquals($itemId,
$item[
'entity_id'],
'id field returned incorrectly');
65 $this->assertEquals(
$name,
$item[
'name'],
'name field returned incorrectly');
_markTestAsRestOnly($message=null)
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
if(!isset($_GET['name'])) $name
◆ $integration
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/api-functional/testsuite/Magento/Integration/Model/IntegrationTest.php