Пример #1
0
 public function testConstructForm()
 {
     $form = new Admin_Form_Document_Files();
     $this->assertNotNull($form->getLegend());
     $this->assertEquals(0, count($form->getElements()));
     $this->assertEquals(1, count($form->getSubForms()));
     $this->assertNotNull($form->getSubForm('Header'));
     $this->assertEquals(5, count($form->getDecorators()));
     $this->assertNotNull($form->getDecorator('FormElements'));
     $this->assertNotNull($form->getDecorator('table'));
     $this->assertNotNull($form->getDecorator('fieldsWrapper'));
     $this->assertNotNull($form->getDecorator('Fieldset'));
     $this->assertNotNull($form->getDecorator('divWrapper'));
 }