public static disableDefaultCsrfProtection ( ) |
static public function disableDefaultCsrfProtection()
{
self::$defaultCsrfProtection = false;
}
protected function setUp() { FormConfiguration::disableDefaultCsrfProtection(); FormConfiguration::setDefaultCsrfSecret(null); $this->validator = $this->createMockValidator(); $this->form = new Form('author', new Author(), $this->validator); }