/**
* @dataProvider genDocumentProvider
*/
public function testGenerateDocument(string
$documentType, string
$documentRangerType, bool
$autoGenInvoiceDoc = false, bool
$multipleDoc = false
): void
{ $context = Context::
createDefaultContext();
$customerId =
$this->
createCustomer();
$order =
$this->
createOrder($customerId,
$context);
$event =
new OrderStateMachineStateChangeEvent('state_enter.order.state.in_progress',
$order,
$context);
$subscriber =
new GenerateDocumentAction($this->documentGenerator,
$this->logger
);
if ($multipleDoc) { $config =
[ 'documentTypes' =>
[ [ 'documentType' =>
$documentType,
'documentRangerType' =>
$documentRangerType,
'custom' =>
['invoiceNumber' => '1100'
],
],
[ 'documentType' => DeliveryNoteRenderer::TYPE,