mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
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:
commit
8a8fcea59f
1 changed files with 21 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue