Пример #1
0
 public function testDefaultCsrfFieldNameCanBeSet()
 {
     Form::setDefaultCsrfFieldName('foobar');
     $form = new Form('author', new Author(), $this->validator);
     $form->enableCsrfProtection();
     $this->assertEquals('foobar', $form->getCsrfFieldName());
 }