amoonu's avatar

How to test controller methods that require cookies

I need to test a controller method that fetches a cookie with \Cookie::get(). I have been trying for days to mock this cookie in my tests but to no avail.

How do I got about this?

0 likes
4 replies
amoonu's avatar

I have tried this. I am also testing a GET route.

Please or to participate in this conversation.