$idD = Uuid::
randomHex();
$idE = Uuid::
randomHex();
$idF = Uuid::
randomHex();
$extension =
new MailSendSubscriberConfig(false,
[$idA,
$idB],
[$idE,
$idF]);
$eventConfig =
['documentTypeIds' =>
[$idA,
$idB]];
$orderId = Uuid::
randomHex();
$this->connection
->
expects(static::
once()) ->
method('fetchAllAssociative'
) ->
with( static::
anything(),
['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],
]);