Disables Csrf protection for all forms.
public static disableDefaultCsrfProtection ( ) |
protected function setUp() { FormConfiguration::disableDefaultCsrfProtection(); FormConfiguration::setDefaultCsrfSecret(null); $this->validator = $this->createMockValidator(); $this->form = new Form('author', new Author(), $this->validator); }