Ejemplo n.º 1
0
 public function testConstructFormWithValidator()
 {
     $form = new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Title', 'TitleParent', new Application_Form_Validate_MultiSubForm_RepeatedLanguages());
     $this->assertNotNull($form->getElement('Add'));
     $this->assertNotNull($form->getLegend());
     $this->assertEquals($form->getLegend(), 'admin_document_section_titleparent');
     $this->assertFalse($form->isRenderAsTableEnabled());
 }