Level 47
I would remove csrf token checking from the test class with withoutMiddleware.
http://laravel.com/docs/5.1/testing#disabling-middleware
I'm trying to write a test that checks for a response, but my forms are submitted via ajax using jQuery and csrf token is fetched from the meta tag, which is included on each page.
Is there a way to add the token to the test call? What I have so far is:
$this->visit('register')
->type('non email value', 'email')
->press('REGISTER');
$this->see('Invalid email address');
Please or to participate in this conversation.