zenstruck / messenger-test

Assertions and helpers for testing your symfony/messenger queues.
MIT License
218 stars 15 forks source link

Process exact message #72

Open norkunas opened 5 months ago

norkunas commented 5 months ago

Can we have a possibility to provide message index which message should be processed from the queue? If there are many different messages and I need to process only one the test can grow very large because of needing to mock many things..

kbond commented 5 months ago

Interesting, and this message would be removed from the queue?

We already have a way to filter messages on the queue. I wonder if we could hook into that API and "process" the found message.

norkunas commented 5 months ago

Yes, it should be removed :)