symfony / symfony-docs

The Symfony documentation
https://symfony.com/doc
Other
2.18k stars 5.13k forks source link

[Notifier][Async testing] #20393

Open GrinWay opened 1 week ago

GrinWay commented 1 week ago

I've described everything here: https://stackoverflow.com/questions/78966921/symfony-7-2-notifier-component-testing-i-can-test-sending-only-sync-but-not-a

OskarStark commented 1 week ago

So do you want to change the docs, do you have a specific question? I don't know what is this ticket about.

GrinWay commented 1 week ago

There is a bug i suggest, all the docs are fine.

I can test sending only "sync" but not "async" messages using NotifierInterface service

When I use "NotifierInterface" service for sending "async" messages everything works

But when it comes to tests, I don't know why, but my tests don't see "async" messages were sent by "NotifierInterface" service