'orderId' => Uuid::
fromHexToBytes($orderId), 'documentTypeIds' => Uuid::
fromHexToBytesList($eventConfig['documentTypeIds'
])],
['documentTypeIds' => ArrayParameterType::STRING
] ) ->
willReturn([ ['doc_type' => 'foo', 'doc_id' => '1'
],
['doc_type' => 'bar', 'doc_id' => '2'
],
['doc_type' => 'foo', 'doc_id' => '3'
],
['doc_type' => 'foo', 'doc_id' =>
$idC],
['doc_type' => 'bar', 'doc_id' =>
$idD],
]);
$document =
new RenderedDocument();
$document->
setContent(''
);
$this->documentGenerator
->
expects(static::
exactly(4
)) ->
method('readDocument'
) ->
willReturn($document);
$criteria =
new Criteria($extension->
getMediaIds());
$criteria->
setTitle('send-mail::load-media'
);
$entities =
array_map(static function Dstring
$id): MediaEntity
{ $media =
new MediaEntity();
$media->
setId($id);