Esempio n. 1
0
 public function testElementsEnableJQueryViewPath()
 {
     $view = new Zend_View();
     $spinner = new ZendX_JQuery_Form_Element_Spinner("spinner1");
     $this->assertFalse(false !== $view->getPluginLoader('helper')->getPaths('ZendX_JQuery_View_Helper'));
     $spinner->setView($view);
     $this->assertTrue(false !== $view->getPluginLoader('helper')->getPaths('ZendX_JQuery_View_Helper'));
 }
 public function testJQueryFormShouldAutomaticallyEnableView()
 {
     $form = new ZendX_JQuery_Form();
     $view = new Zend_View();
     $this->assertFalse(false !== $view->getPluginLoader('helper')->getPaths('ZendX_JQuery_View_Helper'));
     $form->setView($view);
     $this->assertTrue(false !== $form->getView()->getPluginLoader('helper')->getPaths('ZendX_JQuery_View_Helper'));
 }