Skip to content

Commit f82b8a3

Browse files
authored
Update MailServiceTest.php
Revert previous changes Signed-off-by: APaikens <shamanis@gmail.com>
1 parent 58cc210 commit f82b8a3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

test/Service/MailServiceTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ public function testAttachFilesNoNestedMixedParts(): void
306306
public function testMessageBodyIsResetAfterFailedSendToPreventAttachmentLeak(): void
307307
{
308308
$this->mailService->setSubject('First');
309-
$this->message->text('');
310309
$this->message->html('First body');
311310
$this->mailService->addAttachment(
312311
$this->fileSystem->url() . '/data/mail/attachments/testPdfAttachment.pdf'
@@ -339,7 +338,6 @@ public function testMessageBodyIsResetAfterFailedSendToPreventAttachmentLeak():
339338
public function testAttachmentsDoNotLeakIntoSubsequentSendAfterFailure(): void
340339
{
341340
$this->mailService->setSubject('First');
342-
$this->message->text('');
343341
$this->message->html('First email');
344342
$this->mailService->addAttachment(
345343
$this->fileSystem->url() . '/data/mail/attachments/testPdfAttachment.pdf'
@@ -367,7 +365,6 @@ public function testAttachmentsDoNotLeakIntoSubsequentSendAfterFailure(): void
367365
// Reconfigure: brand new email with NO attachments.
368366
$this->mailService->setAttachments([]);
369367
$this->mailService->setSubject('Second');
370-
$this->message->text('');
371368
$this->message->html('Second email - must not carry first email\'s attachment');
372369

373370
$this->mailService->send();
@@ -390,7 +387,6 @@ public function testAttachmentsDoNotLeakIntoSubsequentSendAfterFailure(): void
390387
public function testMessageBodyIsResetAfterSuccessfulSend(): void
391388
{
392389
$this->mailService->setSubject('Hello');
393-
$this->message->text('');
394390
$this->message->html('Body');
395391
$this->mailService->addAttachment(
396392
$this->fileSystem->url() . '/data/mail/attachments/testPdfAttachment.pdf'

0 commit comments

Comments
 (0)