diff --git a/docs/MessengerContext/clear_transport_with_zentruck.md b/docs/MessengerContext/clear_transport.md similarity index 70% rename from docs/MessengerContext/clear_transport_with_zentruck.md rename to docs/MessengerContext/clear_transport.md index 90bc3f1..869fff9 100644 --- a/docs/MessengerContext/clear_transport_with_zentruck.md +++ b/docs/MessengerContext/clear_transport.md @@ -1,5 +1,28 @@ +# Clean with in-memory transport +Switch all your queue to in-memory transport + +example: + +```yaml + # config/packages/messenger.yaml + + # ... + + when@test: + framework: + messenger: + transports: + async: in-memory:// + some-another: in-memory:// + # ... +``` + +All this transport will be cleared automatically before start every scenario. + # Clear queues messages before scenario with zentruck +We also support auto clear message queue with [zenstruck/messenger-test](https://github.com/zenstruck/messenger-test) + ## Installation 1. Install the library: