Skip to content

Commit c2f8518

Browse files
Changing Fail message for Symfony Mailer (#127)
See #125
1 parent 7635356 commit c2f8518

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Codeception/Module/Symfony/MailerAssertionsTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ protected function getMessageMailerEvents(): MessageEvents
9393
return $messageLogger->getEvents();
9494
}
9595

96-
$this->fail("Emails can't be tested without Symfony Mailer service.");
96+
$this->fail("codeception/module-symfony requires Symfony Mailer https://symfony.com/doc/current/mailer.html to test emails. If your app still uses Swift Mailer, downgrade codeception/module-symfony to ^1.6
97+
98+
99+
Emails can't be tested without Symfony Mailer service.");
97100
}
98101
}

0 commit comments

Comments
 (0)