/** * @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)); }
/** * @param ServiceLocatorInterface $serviceLocator * * @return UnsubscribeForm */ public function createService(ServiceLocatorInterface $serviceLocator) { $form = new UnsubscribeForm(); $form->setInputFilter(new UnsubscribeInputFilter()); return $form; }