$this->eventActionRepository =
$this->
getContainer()->
get('event_action.repository'
);
$this->connection->
executeStatement('DELETE FROM `event_action`'
);
$this->connection->
executeStatement('DELETE FROM `flow`'
);
$this->connection->
executeStatement('DELETE FROM `sales_channel_rule`'
);
} public function testMigrateSimpleEventActionToFlow(): void
{ $data =
[];
$this->
createMailTemplate();
$ruleIds =
$this->connection->
fetchAllAssociative('SELECT LOWER(HEX(id)) as id FROM rule LIMIT 2'
);
$data[] =
[ 'title' => 'Test event',
'eventName' => 'checkout.order.placed',
'actionName' => SendMailAction::
getName(),
'config' =>
[ 'mail_template_id' =>
$this->ids->
get('mail_template'
),
'mail_template_type_id' =>
$this->ids->
get('mail_template_type'
),
],
'active' => true,