예제 #1
0
 /**
  * @covers DmMailer\Form\UnsubscribeForm
  */
 public function testBuild()
 {
     $this->sut->build();
     $this->assertInstanceOf('Zend\\Form\\Element\\Hidden', $this->sut->get(Form::SUCCESS_URL));
     $this->assertInstanceOf('Zend\\Form\\Element\\Hidden', $this->sut->get(Form::FAILURE_URL));
     $this->assertInstanceOf('Zend\\Form\\Element\\Email', $this->sut->get(Form::EMAIL_ADDRESS));
 }
예제 #2
0
 /**
  * @param ServiceLocatorInterface $serviceLocator
  *
  * @return UnsubscribeForm
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $form = new UnsubscribeForm();
     $form->setInputFilter(new UnsubscribeInputFilter());
     return $form;
 }