/**
* @dataProvider replyToProvider
*
* @param array<string, string> $exptectedReplyTo
*/
public function testActionExecuted(?string
$replyTo, array
$exptectedReplyTo =
[]): void
{ $orderId = Uuid::
randomHex();
$mailTemplateId = Uuid::
randomHex();
$this->mailTemplate->
setId($mailTemplateId);
$this->mailTemplate->
setSenderName('Phuoc'
);
$config =
array_filter([ 'mailTemplateId' =>
$mailTemplateId,
'recipient' =>
['type' => 'customer'
],
'documentTypeIds' => null,
'replyTo' =>
$replyTo,
]);
$expected =
[ 'data' =>
[ 'recipients' =>
[ 'email' => 'firstName lastName',
],