static::
assertEquals($this->
getBrowser()->
getResponse()->
getStatusCode(), Response::HTTP_OK
);
static::
assertNotNull($this->
getBrowser()->
getResponse()->
getContent());
static::
assertEquals(PdfRenderer::FILE_CONTENT_TYPE,
$this->
getBrowser()->
getResponse()->headers->
get('content-type'
));
} public function testCreateDocuments(): void
{ static::
assertNotNull($customer =
$this->salesChannelContext->
getCustomer());
$order1 =
$this->
createOrder($customer->
getId(),
$this->context
);
$order2 =
$this->
createOrder($customer->
getId(),
$this->context
);
$this->
createDocument(InvoiceRenderer::TYPE,
$order1->
getId(),
[ 'documentType' => 'invoice',
'custom' =>
[ 'invoiceNumber' => '1100',
],
],
$this->context
);
$this->
createDocument(InvoiceRenderer::TYPE,
$order2->
getId(),
[ 'documentType' => 'invoice',
'documentRangerType' => 'document_invoice',
'custom' =>
[ 'invoiceNumber' => '1101',
],