Skip to content

Commit 2f84671

Browse files
author
Gustavo Nieves
authored
Added a more descriptive fail comment
1 parent a295628 commit 2f84671

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,10 @@ public function seeEmailIsSent($expectedCount = null, $mailer = 'swiftmailer')
490490
switch ($mailer) {
491491
case 'swiftmailer':
492492
if (!$profile->hasCollector('swiftmailer')) {
493-
$this->fail('Emails can\'t be tested without SwiftMailer connector');
493+
$this->fail(
494+
'Emails can\'t be tested without SwiftMailer connector.
495+
If you are using Symfony Mailer use "symfony_mailer" as second parameter'
496+
);
494497
}
495498
break;
496499
case 'symfony_mailer':

0 commit comments

Comments
 (0)