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.php
+8-9
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,6 @@
43
43
useSymfony\Component\VarDumper\Cloner\Data;
44
44
usefunctionarray_keys;
45
45
usefunctionarray_map;
46
-
usefunctionarray_merge;
47
46
usefunctionarray_search;
48
47
usefunctionarray_unique;
49
48
usefunctionclass_exists;
@@ -74,7 +73,7 @@
74
73
*
75
74
* ## Config
76
75
*
77
-
* ### Symfony 5.x or 4.4
76
+
* ### Symfony 5.4 or higher
78
77
*
79
78
* * app_path: 'src' - Specify custom path to your app dir, where the kernel interface is located.
80
79
* * environment: 'local' - Environment used for load kernel
@@ -83,8 +82,8 @@
83
82
* * debug: true - Turn on/off debug mode
84
83
* * 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)
85
84
* * rebootable_client: 'true' - Reboot client's kernel before each request
86
-
* * guard: 'false' - Enable custom authentication system with guard (only for 4.x and 5.x versions of the symfony)
87
-
* * authenticator: 'false' - Reboot client's kernel before each request (only for 6.x versions of the symfony)
85
+
* * guard: 'false' - Enable custom authentication system with guard (only for Symfony 5.4)
86
+
* * authenticator: 'false' - Reboot client's kernel before each request (only for Symfony 6.0 or higher)
88
87
*
89
88
* #### Example (`functional.suite.yml`) - Symfony 4 Directory Structure
90
89
*
@@ -126,7 +125,7 @@
126
125
* browser: firefox
127
126
* ```
128
127
*
129
-
* If you're using Symfony with Eloquent ORM (instead of Doctrine), you can load the [`ORM` part of Laravel module](https://codeception.com/docs/modules/Laravel5#Parts)
128
+
* If you're using Symfony with Eloquent ORM (instead of Doctrine), you can load the [`ORM` part of Laravel module](https://codeception.com/docs/modules/Laravel#Parts)
130
129
* in addition to Symfony module.
131
130
*
132
131
*/
@@ -215,7 +214,7 @@ public function _initialize(): void
Copy file name to clipboardExpand all lines: src/Codeception/Module/Symfony/MailerAssertionsTrait.php
+5-12
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,7 @@ trait MailerAssertionsTrait
14
14
/**
15
15
* Checks that no email was sent.
16
16
* The check is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
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`.
17
+
* If your app performs an HTTP redirect, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first; otherwise this check will *always* pass.
19
18
*/
20
19
publicfunctiondontSeeEmailIsSent(): void
21
20
{
@@ -25,8 +24,7 @@ public function dontSeeEmailIsSent(): void
25
24
/**
26
25
* Checks if the given number of emails was sent (default `$expectedCount`: 1).
27
26
* The check is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
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`.
27
+
* If your app performs an HTTP redirect after sending the email, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first.
30
28
*
31
29
* ```php
32
30
* <?php
@@ -43,8 +41,7 @@ public function seeEmailIsSent(int $expectedCount = 1): void
43
41
/**
44
42
* Returns the last sent email.
45
43
* The function is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
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`.
44
+
* If your app performs an HTTP redirect after sending the email, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first.
48
45
* See also: [grabSentEmails()](https://codeception.com/docs/modules/Symfony#grabSentEmails)
49
46
*
50
47
* ```php
@@ -66,8 +63,7 @@ public function grabLastSentEmail(): ?Email
66
63
/**
67
64
* Returns an array of all sent emails.
68
65
* The function is based on `\Symfony\Component\Mailer\EventListener\MessageLoggerListener`, which means:
69
-
* 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.
70
-
* 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`.
66
+
* If your app performs an HTTP redirect after sending the email, you need to suppress it using [stopFollowingRedirects()](https://codeception.com/docs/modules/Symfony#stopFollowingRedirects) first.
71
67
* See also: [grabLastSentEmail()](https://codeception.com/docs/modules/Symfony#grabLastSentEmail)
72
68
*
73
69
* ```php
@@ -94,9 +90,6 @@ protected function getMessageMailerEvents(): MessageEvents
94
90
return$messageLogger->getEvents();
95
91
}
96
92
97
-
$this->fail("codeception/module-symfony requires Symfony Mailer https://symfony.com/doc/current/mailer.html to test emails. If your app still uses Swift Mailer, downgrade codeception/module-symfony to ^1.6
98
-
99
-
100
-
Emails can't be tested without Symfony Mailer service.");
93
+
$this->fail("Emails can't be tested without Symfony Mailer service.");
0 commit comments