$orderId =
$this->flow->
getData(OrderAware::ORDER_ID
);
$fileType =
$config['documentTypes'
][0
]['fileType'
] ??
$config['fileType'
] ?? FileTypes::PDF;
$conf =
$config['documentTypes'
][0
]['config'
] ??
$config['config'
] ??
[];
$static =
$config['documentTypes'
][0
]['static'
] ??
$config['static'
] ?? false;
$operation =
new DocumentGenerateOperation($orderId,
$fileType,
$conf, null,
$static);
$this->documentGenerator->
expects(static::
exactly($expected)) ->
method('generate'
) ->
with($documentType,
[$orderId =>
$operation], Context::
createDefaultContext());
$this->action->
handleFlow($this->flow
);
} public static function actionExecutedProvider(): \Generator
{ yield 'Generate invoice multi' =>
[ [ 'documentTypes' =>
[ [ 'documentType' => 'invoice',
'documentRangerType' => 'document_invoice',
'custom' =>
[