26 'service' =>
'testModule3ErrorV1',
27 'operation' =>
'testModule3ErrorV1WebapiException',
32 $this->fail(
"SoapFault was not raised as expected.");
33 }
catch (\SoapFault $e) {
46 'service' =>
'testModule3ErrorV1',
47 'operation' =>
'testModule3ErrorV1OtherException',
52 $this->fail(
"SoapFault was not raised as expected.");
53 }
catch (\SoapFault $e) {
55 if (strpos($e->getMessage(),
'Internal Error') ===
false) {
58 'Non service exception',
62 'Magento\TestModule3\Service\V1\Error->otherException()' 67 'Internal Error. Details are available in Magento log file. Report ID:',
83 [
'fieldName' =>
'key1',
'value' =>
'value1'],
91 [
'fieldName' =>
'key1',
'value' =>
'value1'],
92 [
'fieldName' =>
'key2',
'value' =>
'value2'],
101 'service' =>
'testModule3ErrorV1',
102 'operation' =>
'testModule3ErrorV1AuthorizationException',
103 'token' =>
'invalidToken',
109 $this->fail(
"SoapFault was not raised as expected.");
110 }
catch (\SoapFault $e) {
113 "The consumer isn't authorized to access %resources.",
123 'service' =>
'testModule3ErrorV1',
124 'operation' =>
'testModule3ErrorV1InputException',
128 $expectedException = new \Magento\Framework\Exception\InputException();
129 foreach ($parameters as $error) {
130 $expectedException->addError(
131 __(
'Invalid value of "%value" provided for the %fieldName field.', $error)
136 'wrappedErrorParameters' => $parameters,
139 $expectedErrors = [];
140 foreach ($expectedException->getErrors() as $key => $error) {
141 $expectedErrors[$key] = [
142 'message' => $error->getRawMessage(),
143 'params' => $error->getParameters(),
149 $this->fail(
"SoapFault was not raised as expected.");
150 }
catch (\SoapFault $e) {
153 $expectedException->getRawMessage(),
155 $expectedException->getParameters(),
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
testSingleWrappedErrorException()
testMultipleWrappedErrorException()
_testWrappedError($parameters)
checkSoapFault( $soapFault, $expectedMessage, $expectedFaultCode, $expectedErrorParams=[], $expectedWrappedErrors=[], $traceString=null)
testEmptyInputException()
_markTestAsSoapOnly($message=null)