public function testInvalidFlagPassedToUseProgrammaticShouldUseProgrammaticWithScripts() { Zend_Dojo_View_Helper_Dojo::setUseProgrammatic('foo'); $this->assertFalse(Zend_Dojo_View_Helper_Dojo::useProgrammaticNoScript()); $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useProgrammatic()); }
/** * Whether or not to use programmatic dijit creation * * @return bool */ protected function _useProgrammatic() { return Zend_Dojo_View_Helper_Dojo::useProgrammatic(); }
public function testShouldAllowSpecifyingProgrammaticDijitCreationWithNoScriptGeneration() { $this->testShouldUseDeclarativeDijitCreationByDefault(); Zend_Dojo_View_Helper_Dojo::setUseProgrammatic(-1); $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useProgrammatic()); $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useProgrammaticNoScript()); }