Using Request Factory is not populated when retrieving the expected data #51
Unanswered
longestdrive
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI
I'm trying to use a request factory in my test but it's started to generate strange results in recent tests - fairly certain I havent changed anything to create the change but:
using version 3.3.0 and Laravel 10.48
In my test I'm creating a factory request as follows:
When I use the Request methods to retrieve data it's always empty - in this case I get the error
error: Call to a member function all() on array
when I run the test - note I'm adding the dd method simply to test it's created.If I debug in PHPstorm I can see it's generated an array - but was expecting a request instance - what am I doing wrong or have I misunderstood the package?
Beta Was this translation helpful? Give feedback.
All reactions