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 w/o script creation * * @return bool */ protected function _useProgrammaticNoScript() { return Zend_Dojo_View_Helper_Dojo::useProgrammaticNoScript(); }
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()); }