19 public function testOrderCommentsList()
21 $comment =
'Test comment';
26 $history =
$order->addStatusHistoryComment($comment,
$order->getStatus());
31 'resourcePath' =>
'/V1/orders/' .
$order->getId() .
'/comments',
37 'operation' => self::SERVICE_NAME .
'getCommentsList',
42 foreach (
$result[
'items'] as $history) {
44 ->load($history[
'entity_id']);
45 $this->assertEquals($orderHistoryStatus->getComment(), $history[
'comment']);
46 $this->assertEquals($orderHistoryStatus->getStatus(), $history[
'status']);
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
static getObjectManager()