Exemplo n.º 1
0
 public function testWhetherACsrfCounterMeasureIsNotBeingAdded()
 {
     $form = new Form();
     $form->setTokenDisabled();
     $form->create();
     $this->assertNull($form->getElement($form->getTokenElementName()), 'Form::create() adds a csrf counter measure element in case it\'s disabled');
 }