Jan 20, 2017
5
Level 3
CSRF middleware not running in test
Hello,
I am testing a form submission and the test is passing without the presence of the CSRF token. If I go to the browser and submit the form, I get the TokenMismatchException that I was expecting. I checked and the VerifyCsrfToken middleware isn't running at all during the test and I am not using the withoutMiddleware trait. Any ideas why that would be?
Level 50
Please or to participate in this conversation.