$this->decorated->
expects(static::
once())->
method('send'
)->
with($mail,
$envelope);
$this->attachmentsBuilder
->
expects(static::
once()) ->
method('buildAttachments'
) ->
with( $mailAttachmentsConfig->
getContext(),
$mailAttachmentsConfig->
getMailTemplate(),
$mailAttachmentsConfig->
getExtension(),
$mailAttachmentsConfig->
getEventConfig(),
$mailAttachmentsConfig->
getOrderId() ) ->
willReturn([ ['id' => 'foo', 'content' => 'foo', 'fileName' => 'bar', 'mimeType' => 'baz/asd'
],
['id' => 'bar', 'content' => 'bar', 'fileName' => 'bar', 'mimeType' => 'baz/asd'
],
]);
$this->documentRepository
->
expects(static::
once()) ->
method('update'
) ->
with([ ['id' => 'foo', 'sent' => true
],
[