lundi 13 juillet 2015

invalid csrf token when testing a symfony2 form

I'm writing a functional test for a symfony2 [2.7.1] website. The test fills one form, submits it (thus creating an entity), next it follows a link to a second form where it tries to create another entity (related to the first one).

When trying to submit the second form, I get the invalid csrf token error.

Does anyone know what is happening??

Aucun commentaire:

Enregistrer un commentaire