22 public function testShipmentCommentsList()
24 $comment =
'Test comment';
29 $shipment = $shipmentCollection->getFirstItem();
31 $shipmentComment->setComment($comment);
32 $shipmentComment->setParentId(
$shipment->getId());
33 $shipmentComment->save();
37 'resourcePath' =>
'/V1/shipment/' .
$shipment->getId() .
'/comments',
43 'operation' => self::SERVICE_NAME .
'getCommentsList',
52 ->load(
$item[
'entity_id']);
53 $this->assertEquals($shipmentHistoryStatus->getComment(),
$item[
'comment']);
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
foreach($order->getItems() as $orderItem) $shipment
static getObjectManager()