cloneDefaultFlow example

$this->assertOrderWithGrantedAccess($orderId$productDownloads);
    }

    /** * @param array<int, string[]> $productDownloads * * @dataProvider orderCaseProvider */
    public function testFlowActionRunsOnOrderPlaced(array $productDownloads): void
    {
        $this->cloneDefaultFlow();

        $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);

        
Home | Imprint | This part of the site doesn't use cookies.