/**
* @param array<int, string[]> $productDownloads
*
* @dataProvider orderCaseProvider
*/
public function testFlowActionRunsOnEnterState(array
$productDownloads): void
{ $orderId =
$this->
placeOrder($productDownloads);
$this->
assertOrderWithoutGrantedAccess($orderId,
$productDownloads);
$flowEvent = null;
$flowListener =
function DFlowSendMailActionEvent
$event) use (&
$flowEvent): void
{ $event =
$this->
onFlowSendMailActionEvent($event);
if ($event instanceof FlowSendMailActionEvent
) { $flowEvent =
$event;
} };
$this->
addEventListener($this->eventDispatcher, FlowSendMailActionEvent::
class,
$flowListener);