CodeExplorer DocumentMerger example
static::
assertNull($mergeResult);
} public function testMergeNonStaticDocumentsWithoutMedia(): void
{ $expectedBlob = 'expected blob';
$mockFpdi =
$this->
getMockBuilder(Fpdi::
class)->
onlyMethods(['Output'
])->
getMock();
$mockFpdi->
expects(static::
once())->
method('OutPut'
)->
willReturn($expectedBlob);
$documentMerger =
new DocumentMerger( $this->documentRepository,
$this->
getContainer()->
get(MediaService::
class),
$this->documentGenerator,
$mockFpdi,
);
$doc1 = Uuid::
randomHex();
$doc2 = Uuid::
randomHex();
$this->documentRepository->
create([[ 'id' =>
$doc1,