Exemplo n.º 1
0
 public function testCreatingFormWithManyRelation()
 {
     $this->_initAdapter('Article');
     $form = new CU_Form_Model(array('model' => 'Article', 'generateManyFields' => true, 'adapter' => $this->_adapter));
     $forms = $form->getSubForms();
     $this->assertTrue(count($forms) == 0);
 }