@@ -316,46 +316,6 @@ public function testSendFullEmailWithSuccess()
316
316
$ this ->assertEquals ([new Address ('bcc@example.com ' )], $ sentMessage ->getOriginalMessage ()->getBcc ());
317
317
}
318
318
319
- public function testSendEmailWithAttachmentsWithSuccess ()
320
- {
321
- $ email = $ this ->basicValidEmail ()
322
- ->text ('foobar ' )
323
- ->attach ('some attachment ' , 'attachment.txt ' , 'text/plain ' )
324
- ->embed ('some inline attachment ' , 'inline.txt ' , 'text/plain ' )
325
- ;
326
-
327
- $ sentMessage = $ this ->transport ->send ($ email );
328
-
329
- $ this ->assertInstanceOf (SentMessage::class, $ sentMessage );
330
- $ this ->assertStringMatchesFormat (
331
- <<<'TXT'
332
- %a
333
- Content-Type: multipart/mixed; boundary=%s
334
-
335
- --%s
336
- Content-Type: text/plain; charset=utf-8
337
- Content-Transfer-Encoding: quoted-printable
338
-
339
- foobar
340
- --%s
341
- Content-Type: text/plain; name=attachment.txt
342
- Content-Transfer-Encoding: base64
343
- Content-Disposition: attachment; name=attachment.txt;
344
- filename=attachment.txt
345
-
346
- c29tZSBhdHRhY2htZW50
347
- --%s
348
- Content-Type: text/plain; name=inline.txt
349
- Content-Transfer-Encoding: base64
350
- Content-Disposition: inline; name=inline.txt; filename=inline.txt
351
-
352
- c29tZSBpbmxpbmUgYXR0YWNobWVudA==
353
- --%s--
354
- TXT,
355
- $ sentMessage ->toString ()
356
- );
357
- }
358
-
359
319
public function testSentMessageShouldCaptureInfobipMessageId ()
360
320
{
361
321
$ this ->response = new MockResponse ('{"messages": [{"messageId": "somexternalMessageId0"}]} ' );
0 commit comments