/**
* @dataProvider stornoNoteRendererDataProvider
*
* @param array<string, string> $additionalConfig
*/
public function testRender(array
$additionalConfig, \Closure
$assertionCallback): void
{ $cart =
$this->
generateDemoCart([7, 31
]);
$orderId =
$this->cartService->
order($cart,
$this->salesChannelContext,
new RequestDataBag());
$invoiceConfig =
new DocumentConfiguration();
$invoiceConfig->
setDocumentNumber('1001'
);
$operationInvoice =
new DocumentGenerateOperation($orderId, FileTypes::PDF,
$invoiceConfig->
jsonSerialize());
$result =
$this->documentGenerator->
generate(InvoiceRenderer::TYPE,
[$orderId =>
$operationInvoice],
$this->context
)->
getSuccess()->
first();
static::
assertNotNull($result);
$invoiceId =
$result->
getId();
$config =
[ 'displayLineItems' => true,
'itemsPerPage' => 10,
'displayFooter' => true,