Skip to content

Commit 52d43c3

Browse files
Improved seeEmailIsSent error message
Adding an even more descriptive comment - follow-up of 2f84671 The indentation of the code is preserved in the displayed message, so it looked like this: ``` Fail Emails can't be tested without SwiftMailer connector. If you are using Symfony Mailer define mailer: "symfony_mailer" in Symfony module config. ``` I hope the `\n` works better :-)
1 parent 802821f commit 52d43c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,7 @@ public function seeEmailIsSent($expectedCount = null)
500500
case self::SWIFTMAILER:
501501
if (!$profile->hasCollector('swiftmailer')) {
502502
$this->fail(
503-
'Emails can\'t be tested without SwiftMailer connector.
504-
If you are using Symfony Mailer define mailer: "symfony_mailer" in Symfony module config.'
503+
"Emails can't be tested without SwiftMailer connector.\nIf you are using Symfony Mailer, set this in your `functional.suite.yml`: `mailer: 'symfony_mailer'`"
505504
);
506505
}
507506
break;

0 commit comments

Comments
 (0)