TXT,
$options['body'
] );
} public function testSendEmailWithAttachmentsShouldCalledInfobipWithTheRightParameters() { $email =
$this->
basicValidEmail() ->
text('foobar'
) ->
addPart(new DataPart('some attachment', 'attachment.txt', 'text/plain'
)) ->
addPart((new DataPart('some inline attachment', 'inline.txt', 'text/plain'
))->
asInline()) ;
$this->transport->
send($email);
$options =
$this->response->
getRequestOptions();
$this->
arrayHasKey('body'
);
$this->
assertStringMatchesFormat(<<<'TXT'
%a
--%s
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-Disposition: form-data; name="text"
foobar
--%s
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Content-Disposition: form-data; name="attachment"; filename="attachment.txt"
some attachment
--%s
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Content-Disposition: form-data; name="inlineImage"; filename="inline.txt"
some inline attachment
--%s--