22 public function testInvoiceCommentsList()
24 $comment =
'Test comment';
29 $invoice = $invoiceCollection->getFirstItem();
31 $invoiceComment->setComment($comment);
32 $invoiceComment->setParentId(
$invoice->getId());
33 $invoiceComment->save();
37 'resourcePath' =>
'/V1/invoices/' .
$invoice->getId() .
'/comments',
43 'operation' => self::SERVICE_NAME .
'getCommentsList',
52 ->load(
$item[
'entity_id']);
53 $this->assertEquals($invoiceHistoryStatus->getComment(),
$item[
'comment']);
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
static getObjectManager()