Open mbopp opened 5 months ago
Hello @mbopp
I think that if you use $messenger->reset()
you won't have the problem.
nonetheless, there is a problem with resetAll()
method: we're resetting $intercept
and $catchExceptions
to null
, but isIntercepting()
and isCatchingExceptions()
must return false. @kbond WDYT?
I think that if you use $messenger->reset() you won't have the problem.
@mbopp, can you confirm this solves the problem?
I don't think resetAll should be used in userland - we should mark as internal. It should only be called in the test trait.
nonetheless, there is a problem with resetAll() method: we're resetting $intercept and $catchExceptions to null, but isIntercepting() and isCatchingExceptions() must return false.
I think the problem is an undefined array key (there's a warning but returns null). We should throw an exception here I think.
Thanks for the quick response!
That fixed it! I'm very appreciative! This is a fantastic utility.
I'm using API Platform. I have many transports and many tests that work great. But after adding a new transport and implementing a test I am getting an error:
Which seems to indicate that the new transport isn't found. Here are some of the details that cause this error ('hubspot_transport' is the name of the one that fails)
messenger.yaml
relevant test code:
The login request alters a field on the user entity...
In my entity listener:
Please let me know if there is more info I can provide to help put a finger on what is happening here. Thank you so much for your help!