Skip to content

Commit fbe8909

Browse files
author
Roger
committed
update code
1 parent 80896ce commit fbe8909

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/ShipOrderTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,11 @@ public function testShipOrderWithTypeError()
194194
'items' => "[]",
195195
];
196196

197-
$this->expectExceptionCode(400);
198-
$this->_webApiCall($this->getServiceInfo($existingOrder), $requestData);
197+
try {
198+
$this->_webApiCall($this->getServiceInfo($existingOrder), $requestData);
199+
$this->fail('Expected exception was not raised');
200+
} catch (\Exception $exception) {
201+
}
199202
}
200203

201204
/**

0 commit comments

Comments
 (0)