Add new Storage::preventStrayRequests() #42580
Unanswered
khalyomede
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The other day I noticed #42230 added the ability to enforce faking all HTTP requests being made from tests, and I am a big fan of it!
I noticed since january I am sending 14ko files to my S3 storage when I run tests on my local env... Would have liked to prevent HTTP requests to my S3 buckets during my tests. In total 341 files sent to this day (I stopped the fire tonight, and won 1s on my tests, which is nice).
For the moment I fake the storage globally, but I would have liked to fake it just when I need, and prevent globally HTTP requests from the Storage facade to happen.
Is someone else having the same issue and would find this useful?
Beta Was this translation helpful? Give feedback.
All reactions