public function testCreateSubForm() { $form = new Admin_Form_Document_MultiSubForm('Admin_Form_Document_Title', 'TitleSub', new Application_Form_Validate_MultiSubForm_RepeatedLanguages()); $subform = $form->createSubForm(); $this->assertNotNull($subform); $this->assertNotNull($subform->getElement('Remove')); $this->assertEmpty($subform->getElement('Remove')->getDecorators()); $this->assertEquals(4, count($subform->getDecorators())); $this->assertNotNull($subform->getDecorator('FormElements')); $this->assertNotNull($subform->getDecorator('RemoveButton')); $this->assertNotNull($subform->getDecorator('dataWrapper')); $this->assertNotNull($subform->getDecorator('multiWrapper')); }