Ejemplo n.º 1
0
 public function testIsValidFalse()
 {
     $form = new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Title', 'TitleParent', new Application_Form_Validate_MultiSubForm_RepeatedLanguages());
     $form->appendSubForm();
     $form->appendSubForm();
     $post = array('Parent' => array('TitleParent0' => array('Language' => 'deu', 'Value' => 'Titel 1'), 'TitleParent1' => array('Language' => 'deu', 'Value' => 'Titel 2')));
     $this->assertFalse($form->isValid($post, $post));
 }