14 require
'default_rollback.php';
35 'comment' =>
'comment 1',
36 'is_visible_on_front' => 1,
37 'is_customer_notified' => 1,
40 'comment' =>
'comment 2',
41 'is_visible_on_front' => 1,
42 'is_customer_notified' => 1,
45 'comment' =>
'comment 3',
46 'is_visible_on_front' => 1,
47 'is_customer_notified' => 1,
50 'comment' =>
'comment 4',
51 'is_visible_on_front' => 1,
52 'is_customer_notified' => 1,
55 'comment' =>
'comment 5',
56 'is_visible_on_front' => 0,
57 'is_customer_notified' => 1,
66 $comment = Bootstrap::getObjectManager()->create(Comment::class);
67 $comment->setParentId(
$shipment->getId());
68 $comment->setComment(
$data[
'comment']);
69 $comment->setIsVisibleOnFront(
$data[
'is_visible_on_front']);
70 $comment->setIsCustomerNotified(
$data[
'is_customer_notified']);
defined('TESTS_BP')||define('TESTS_BP' __DIR__