Repository navigation
Testing defer results
#52961
|
Is there a clean way to test the results of deferred functions? Ideally, I would like to have the ability for |
Answered by
chillbram
Nov 15, 2024
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. |
0 replies
|
Solution is now available with #53340, which is available from v11.30.0 onwards thanks to @timacdonald! |
0 replies
Answer selected by
chillbram
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution is now available with #53340, which is available from v11.30.0 onwards thanks to @timacdonald!