Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
SoapTest Class Reference
Inheritance diagram for SoapTest:

Public Member Functions

 testDispatchWsdlRequest ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $soapController
 
 $objectManager
 

Detailed Description

Definition at line 9 of file SoapTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 21 of file SoapTest.php.

22  {
24  $this->soapController = $this->objectManager->get(\Magento\Webapi\Controller\Soap::class);
25  }

◆ testDispatchWsdlRequest()

testDispatchWsdlRequest ( )

Definition at line 30 of file SoapTest.php.

31  {
32  $request = $this->objectManager->get(\Magento\Framework\Webapi\Request::class);
33  $request->setParam(\Magento\Webapi\Model\Soap\Server::REQUEST_PARAM_LIST_WSDL, true);
34  $response = $this->soapController->dispatch($request);
35  $decoded_wsdl = json_decode($response->getContent(), true);
36  $this->assertArrayHasKey("customerAccountManagementV1", $decoded_wsdl);
37  $this->assertArrayHasKey("integrationAdminTokenServiceV1", $decoded_wsdl);
38  }
$response
Definition: 404.php:11

Field Documentation

◆ $objectManager

$objectManager
protected

Definition at line 19 of file SoapTest.php.

◆ $soapController

$soapController
protected

Definition at line 14 of file SoapTest.php.


The documentation for this class was generated from the following file: