15 require
'default_rollback.php';
19 $orderService = Bootstrap::getObjectManager()->create(InvoiceManagementInterface::class);
25 $order->setIsInProcess(
true);
32 'comment' =>
'comment 1',
33 'is_visible_on_front' => 1,
34 'is_customer_notified' => 1,
37 'comment' =>
'comment 2',
38 'is_visible_on_front' => 1,
39 'is_customer_notified' => 1,
42 'comment' =>
'comment 3',
43 'is_visible_on_front' => 1,
44 'is_customer_notified' => 1,
47 'comment' =>
'comment 4',
48 'is_visible_on_front' => 1,
49 'is_customer_notified' => 1,
52 'comment' =>
'comment 5',
53 'is_visible_on_front' => 0,
54 'is_customer_notified' => 1,
59 $commentRepository = Bootstrap::getObjectManager()->get(InvoiceCommentRepositoryInterface::class);
63 $comment = Bootstrap::getObjectManager()->create(Comment::class);
64 $comment->setParentId(
$invoice->getId());
65 $comment->setComment(
$data[
'comment']);
66 $comment->setIsVisibleOnFront(
$data[
'is_visible_on_front']);
67 $comment->setIsCustomerNotified(
$data[
'is_customer_notified']);
defined('TESTS_BP')||define('TESTS_BP' __DIR__