Skip to content

Commit abc6180

Browse files
authored
Update MailServiceTest.php
Fix php stan errors Signed-off-by: APaikens <shamanis@gmail.com>
1 parent 928aa13 commit abc6180

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/Service/MailServiceTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ public function testAttachFilesPreservesCustomFilename(): void
236236

237237
$this->mailService->attachFiles();
238238

239-
$body = $this->message->getBody();
239+
$body = $this->message->getBody();
240+
$this->assertInstanceOf(MixedPart::class, $body);
240241
$parts = $body->getParts();
241242

242243
$this->assertCount(2, $parts);
@@ -282,7 +283,8 @@ public function testAttachFilesNoNestedMixedParts(): void
282283

283284
$this->mailService->attachFiles();
284285

285-
$body = $this->message->getBody();
286+
$body = $this->message->getBody();
287+
$this->assertInstanceOf(MixedPart::class, $body);
286288
$parts = $body->getParts();
287289

288290
// None of the children should be a MixedPart (no nesting)

0 commit comments

Comments
 (0)