38 public function testOrderCommentAdd()
41 $order = $this->objectManager->create(\
Magento\Sales\Model\Order::class);
42 $order->loadByIncrementId(self::ORDER_INCREMENT_ID);
58 'resourcePath' =>
'/V1/orders/' .
$order->getId() .
'/comments',
64 'operation' => self::SERVICE_READ_NAME .
'addComment',
74 foreach ($commentData as $key =>
$value) {
77 $statusHistoryComment->getComment()
81 $statusHistoryComment->getParentId()
85 $statusHistoryComment->getIsCustomerNotified()
89 $statusHistoryComment->getIsVisibleOnFront()
const IS_CUSTOMER_NOTIFIED
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
const IS_VISIBLE_ON_FRONT
static getObjectManager()