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
* * cache_router: 'false' - enable router caching between tests in order to [increase performance](http://lakion.com/blog/how-did-we-speed-up-sylius-behat-suite-with-blackfire)
76
77
* * rebootable_client: 'true' - reboot client's kernel before each request
77
-
* * mailer: 'symfony_mailer' - choose the mailer used by your application
78
78
*
79
79
* #### Example (`functional.suite.yml`) - Symfony 4 Directory Structure
80
80
*
@@ -95,7 +95,6 @@
95
95
* * debug: true - turn on/off debug mode
96
96
* * cache_router: 'false' - enable router caching between tests in order to [increase performance](http://lakion.com/blog/how-did-we-speed-up-sylius-behat-suite-with-blackfire)
97
97
* * rebootable_client: 'true' - reboot client's kernel before each request
98
-
* * mailer: 'swiftmailer' - choose the mailer used by your application
99
98
*
100
99
* #### Example (`functional.suite.yml`) - Symfony 3 Directory Structure
* Checks if the desired number of emails was sent.
21
-
* If no argument is provided then at least one email must be sent to satisfy the check.
22
-
* The email is checked using Symfony's profiler, which means:
23
+
* Asserts that 1 email was sent by default, specify the `expectedCount` parameter to modify it.
24
+
* The email is checked using Symfony message logger, which means:
23
25
* * If your app performs a redirect after sending the email, you need to suppress this using REST Module's [stopFollowingRedirects](https://codeception.com/docs/modules/REST#stopFollowingRedirects)
24
-
* * If the email is sent by a Symfony Console Command, Codeception cannot detect it yet.
25
26
*
26
-
* ```php
27
+
* ```php
27
28
* <?php
28
29
* $I->seeEmailIsSent(2);
29
30
* ```
30
31
*
31
-
* @param int|null $expectedCount
32
+
* @param int $expectedCount The expected number of emails sent
0 commit comments