Skip to content

Commit

Permalink
Add reset message queues before scenario with zentruck/messenger-test
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiidonii committed Oct 20, 2024
1 parent ab34cbb commit d10f1b7
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit d10f1b7

Please sign in to comment.