13 require
'default_rollback.php';
17 $order = Bootstrap::getObjectManager()->create(Order::class);
18 $order->loadByIncrementId(
'100000001');
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,
60 $comment = Bootstrap::getObjectManager()->create(Comment::class);
62 $comment->setComment(
$data[
'comment']);
63 $comment->setIsVisibleOnFront(
$data[
'is_visible_on_front']);
64 $comment->setIsCustomerNotified(
$data[
'is_customer_notified']);
defined('TESTS_BP')||define('TESTS_BP' __DIR__