You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The check is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
530
+
If your app performs a HTTP redirect, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first; otherwise this check will *always* pass.
531
+
Starting with version 2.0.0, `codeception/module-symfony` requires your app to use [Symfony Mailer](https://symfony.com/doc/current/mailer.html). If your app still uses [Swift Mailer](https://symfony.com/doc/current/email.html), set your version constraint to `^1.6`.
The function is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
866
+
If your app performs a HTTP redirect after sending the email, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first.
867
+
Starting with version 2.0.0, `codeception/module-symfony` requires your app to use [Symfony Mailer](https://symfony.com/doc/current/mailer.html). If your app still uses [Swift Mailer](https://symfony.com/doc/current/email.html), set your version constraint to `^1.6`.
868
+
See also: [grabSentEmails()](https://codeception.com/docs/modules/Symfony#grabSentEmails)
The function is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
976
+
If your app performs a HTTP redirect after sending the email, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first.
977
+
Starting with version 2.0.0, `codeception/module-symfony` requires your app to use [Symfony Mailer](https://symfony.com/doc/current/mailer.html). If your app still uses [Swift Mailer](https://symfony.com/doc/current/email.html), set your version constraint to `^1.6`.
978
+
See also: [grabLastSentEmail()](https://codeception.com/docs/modules/Symfony#grabLastSentEmail)
Asserts that 1 email was sent by default, specify the `expectedCount` parameter to modify it.
1360
-
The email is checked using Symfony message logger, which means:
1361
-
* If your app performs a redirect after sending the email, you need to suppress it using [stopFollowingRedirects](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects).
1374
+
Checks if the given number of emails was sent (default `$expectedCount`: 1).
1375
+
The check is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
1376
+
If your app performs a HTTP redirect after sending the email, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first.
1377
+
Starting with version 2.0.0, `codeception/module-symfony` requires your app to use [Symfony Mailer](https://symfony.com/doc/current/mailer.html). If your app still uses [Swift Mailer](https://symfony.com/doc/current/email.html), set your version constraint to `^1.6`.
1362
1378
1363
1379
{% highlight php %}
1364
1380
@@ -2266,7 +2282,7 @@ If you customized the names of the field selectors use $I->submitForm() for full
0 commit comments