Skip to content

Commit

Permalink
feat: add plain text-only and html-only mails to test
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Hackel <[email protected]>
  • Loading branch information
maikschneider and pipaltree committed Sep 6, 2024
1 parent e295044 commit d9499ff
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Tests/Functional/Utility/LogParserUtilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,37 @@ public static function mailDataProvider(): array
'format' => FluidEmail::FORMAT_BOTH,
];

$htmlOnlyMail = $defaultMail;
$htmlOnlyMail['format'] = FluidEmail::FORMAT_HTML;

$plainOnlyMail = $defaultMail;
$plainOnlyMail['format'] = FluidEmail::FORMAT_PLAIN;

return [
[
[$defaultMail],
],
[
[
$plainOnlyMail,
$plainOnlyMail,
$defaultMail,
$defaultMail,
$plainOnlyMail,
],
],
[
[
$htmlOnlyMail,
$htmlOnlyMail,
$defaultMail,
$htmlOnlyMail,
],
],
[
[$defaultMail],
[$htmlOnlyMail],
[$plainOnlyMail],
],
];
}

Expand All @@ -89,7 +105,7 @@ public static function mailDataProvider(): array
*/
public function testEmailEncoding(array $exampleMails): void
{
foreach ($exampleMails as $key => $exampleMail) {
foreach ($exampleMails as $exampleMail) {
$this->createTestMail($exampleMail);
}

Expand Down

0 comments on commit d9499ff

Please sign in to comment.