Laravel 5 unit testing Form and TokenMismatchException in Middleware – Margus Pala is fixing IT!
While unit testing in Laravel 4 you were able to turn off filters including CSRF check in testing environment. However in the Laravel 5 CSRF check has been move into the middleware and I have not yet found the way to turn CSRF check off easily.
Unfortunately, this solution will be overwritten every time you update Laravel with composer update.
As an alternative, you can modify YourApp\Http\Middleware\VerifyCsrfToken to bypass checking the token before it reaches the stock middleware.
More correct solution would be not to modify token verification for tests, but ensure that tests work close to real life as much as possible, which means adding csrf token to request cookies or to each request as input value – just as you would do in real form.