Example #1
0
 public function testFormKeyUsing()
 {
     $formKey = 'form-key';
     $this->_formKeyMock->expects($this->once())->method('getFormKey')->will($this->returnValue($formKey));
     $this->_form->setUseContainer(true);
     $this->_form->setMethod('post');
     $this->assertContains($formKey, $this->_form->toHtml());
 }