Closed rakishii13 closed 2 years ago
+1
Hello, and thank you for your suggestion. I'm sorry for not responding to you sooner, but I wanted to take the time now in case you are still curious about this.
I never considered using ForwardCalls
, but it's an interesting idea. I will try it out and see if it makes sense, but if you would like to provide a sample yourself, you're welcome to fork this repository and submit a pull request.
Closing due to inactivity
Is there a way we can switch to use the trait ForwardCalls to actually mock the action being tested instead of setting up an entire MockAction and only handling the
handle()
method. Using the trait, we instead just pass through and that way can access more methods and variables inside the action for better testing.