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
Copy file name to clipboardExpand all lines: src/Codeception/Module/Symfony/MailerAssertionsTrait.php
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ trait MailerAssertionsTrait
15
15
* Checks that no email was sent.
16
16
* The check is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
17
17
* 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.
18
+
* 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`.
18
19
*/
19
20
publicfunctiondontSeeEmailIsSent(): void
20
21
{
@@ -25,6 +26,7 @@ public function dontSeeEmailIsSent(): void
25
26
* Checks if the given number of emails was sent (default `$expectedCount`: 1).
26
27
* The check is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
27
28
* 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.
29
+
* 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`.
28
30
*
29
31
* ```php
30
32
* <?php
@@ -42,6 +44,7 @@ public function seeEmailIsSent(int $expectedCount = 1): void
42
44
* Returns the last sent email.
43
45
* The function is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
44
46
* 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.
47
+
* 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`.
45
48
* See also: [grabSentEmails()](https://codeception.com/docs/modules/Symfony#grabSentEmails)
46
49
*
47
50
* ```php
@@ -67,6 +70,7 @@ public function grabLastSentEmail(): ?Email
67
70
* Returns an array of all sent emails.
68
71
* The function is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
69
72
* 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.
73
+
* 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`.
70
74
* See also: [grabLastSentEmail()](https://codeception.com/docs/modules/Symfony#grabLastSentEmail)
0 commit comments