minor #14381 [Maintenance] Note behat changes due to Mailer usage (NoResponseMate)

This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12                  |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | #14341                       |
| License         | MIT                                                          |

Commits
-------

5457e76f3f [Maintenance][Behat] Note behat config changes due to Mailer usage
This commit is contained in:
Jakub Tobiasz 2023-01-26 11:43:02 +01:00 committed by GitHub
commit 8a8fcea59f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,3 +202,24 @@ to dynamically serve assets from the correct directory.
</a>
</div>
```
## Testing suite
#### Behat changes
As the default mailer integration has been changed from Swiftmailer to Symfony Mailer, the following changes have to be applied.
1. Remove the `config/packages/test/swiftmailer.yaml` file
2. Add a `config/packages/test/mailer.yaml` file with:
```yml
framework:
mailer:
dsn: 'null://null'
cache:
pools:
test.mailer_pool:
adapter: cache.adapter.filesystem
```
3. Change all occurrences of `sylius.behat.context.hook.email_spool` to `sylius.behat.context.hook.mailer`.
Due to the changes in Symfony's session handling you might need to add the `sylius.behat.context.hook.session` context to your suites.