Skip to content

Commit d10f1b7

Browse files
committed
Add reset message queues before scenario with zentruck/messenger-test
1 parent ab34cbb commit d10f1b7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/MessengerContext/clear_transport_with_zentruck.md renamed to docs/MessengerContext/clear_transport.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
1+
# Clean with in-memory transport
2+
Switch all your queue to in-memory transport
3+
4+
example:
5+
6+
```yaml
7+
# config/packages/messenger.yaml
8+
9+
# ...
10+
11+
when@test:
12+
framework:
13+
messenger:
14+
transports:
15+
async: in-memory://
16+
some-another: in-memory://
17+
# ...
18+
```
19+
20+
All this transport will be cleared automatically before start every scenario.
21+
122
# Clear queues messages before scenario with zentruck
223

24+
We also support auto clear message queue with [zenstruck/messenger-test](https://github.com/zenstruck/messenger-test)
25+
326
## Installation
427

528
1. Install the library:

0 commit comments

Comments
 (0)