Exemplo n.º 1
0
 public function testFormWithModel()
 {
     $this->grid->setSource(new Bvb_Grid_Source_Zend_Table(new Bugs()));
     $this->grid->setParam('add', 1);
     $form = new Bvb_Grid_Form();
     $form->setView(new Zend_View());
     $form->setAdd(true)->setEdit(true)->setDelete(true);
     $this->grid->setForm($form);
     $grid = $this->grid->deploy();
     $this->controller->getResponse()->setBody($grid);
     $this->assertQuery("form");
     $this->assertQuery("[@id='1-bug_description']");
 }