|  | 
|  | setUp () | 
|  | 
|  | 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 DeserializationTest.php.
 
◆ setUp()
Definition at line 23 of file DeserializationTest.php.
   25         $this->_version = 
'V1';
    26         $this->_restResourcePath = 
"/{$this->_version}/TestModule5/";
  
 
◆ testPostRequestWithEmptyBody()
      
        
          | testPostRequestWithEmptyBody | ( |  | ) |  | 
      
 
Test POST request with empty body 
Definition at line 32 of file DeserializationTest.php.
   42             '{"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"fieldName":"item"}}';
    45         } 
catch (\Exception $e) {
    46             $this->assertEquals(\
Magento\Framework\Webapi\Exception::HTTP_BAD_REQUEST, $e->getCode());
    47             $this->assertContains(
    50                 "Response does not contain expected message." 
_markTestAsRestOnly($message=null)
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
 
 
◆ testPutRequestWithEmptyBody()
      
        
          | testPutRequestWithEmptyBody | ( |  | ) |  | 
      
 
Test PUT request with empty body 
Definition at line 58 of file DeserializationTest.php.
   64                 'resourcePath' => $this->_restResourcePath . $itemId,
    69             '{"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"fieldName":"entityItem"}}';
    72         } 
catch (\Exception $e) {
    73             $this->assertEquals(\
Magento\Framework\Webapi\Exception::HTTP_BAD_REQUEST, $e->getCode());
    74             $this->assertContains(
    77                 "Response does not contain expected message." 
_markTestAsRestOnly($message=null)
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
 
 
◆ $_restResourcePath
◆ $_version
The documentation for this class was generated from the following file: