-
Is there a clean way to test the results of deferred functions? Ideally, I would like to have the ability for |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It’s not the best way to do it, but you can use this workaround: $this->get('/'); Since “defer” is executed after an HTTP response, you can simulate a simple HTTP request to ensure that defer gets executed. |
Beta Was this translation helpful? Give feedback.
-
Solution is now available with #53340, which is available from v11.30.0 onwards thanks to @timacdonald! |
Beta Was this translation helpful? Give feedback.
Solution is now available with #53340, which is available from v11.30.0 onwards thanks to @timacdonald!