diff --git a/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php b/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php index f5aa6bd88c399..7e141a1c56aa9 100644 --- a/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php +++ b/app/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor.php @@ -1,12 +1,13 @@ getMessage())); + } $outputData = $this->serviceOutputProcessor->process( $outputData, $serviceClassName, @@ -109,7 +116,7 @@ public function process(\Magento\Framework\Webapi\Rest\Request $request) } /** - * {@inheritdoc} + * @inheritdoc */ public function canProcess(\Magento\Framework\Webapi\Rest\Request $request) { diff --git a/dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/ShipOrderTest.php b/dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/ShipOrderTest.php index 41b03933f40a2..3a2ccf053b4d0 100644 --- a/dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/ShipOrderTest.php +++ b/dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/ShipOrderTest.php @@ -1,7 +1,7 @@ getOrder('100000001'); + + $requestData = [ + 'orderId' => $existingOrder->getId(), + 'items' => "[]", + ]; + + try { + $this->_webApiCall($this->getServiceInfo($existingOrder), $requestData); + $this->fail('Expected exception was not raised'); + } catch (\Exception $exception) { + } + } + /** * Tests that not providing a tracking number produces the correct error. See MAGETWO-95429 * @codingStandardsIgnoreStart