public function testUiWidgetElementDecoratorRender() { $ac = new ZendX_JQuery_Form_Element_Spinner("ac1"); // Remove all non jQUery related decorators $ac->removeDecorator('Errors'); $ac->removeDecorator('HtmlTag'); $ac->removeDecorator('Label'); try { $ac->render(); $this->fail(); } catch (Zend_Form_Decorator_Exception $e) { } catch (Zend_Exception $e) { $this->fail(); } $view = new Zend_View(); ZendX_JQuery::enableView($view); $ac->setView($view); $output = $ac->render(); $this->assertContains("ac1", $output); }