25 $this->_version =
'V1';
26 $this->_restResourcePath =
"/{$this->_version}/TestModule5/";
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." 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)
testPostRequestWithEmptyBody()
testPutRequestWithEmptyBody()