static::
assertNull($mergeResult);
} /**
* @dataProvider documentMergeDataProvider
*/
public function testMerge(int
$numDocs, bool
$static, bool
$withMedia, \Closure
$assertionCallback): void
{ $docIds =
[];
for ($i = 0;
$i <
$numDocs; ++
$i) { $deliveryOperation =
new DocumentGenerateOperation($this->orderId, FileTypes::PDF,
[], null,
$static);
$result =
$this->documentGenerator->
generate(DeliveryNoteRenderer::TYPE,
[$this->orderId =>
$deliveryOperation],
$this->context
)->
getSuccess()->
first();
static::
assertNotNull($result);
$docIds[] =
$result->
getId();
if ($static &&
$withMedia) { $staticFileContent = 'this is some content';
$uploadFileRequest =
new Request([ 'extension' => FileTypes::PDF,
'fileName' => Uuid::
randomHex(),
],
[],
[],
[],
[],
[