public function testDefaultCsrfFieldNameCanBeSet() { Form::setDefaultCsrfFieldName('foobar'); $form = new Form('author', new Author(), $this->validator); $form->enableCsrfProtection(); $this->assertEquals('foobar', $form->getCsrfFieldName()); }