Example #1
0
    /**
     * Sets up the fixture, for example, open a network connection.
     * This method is called before a test is executed.
     *
     * @return void
     */
    public function setUp()
    {
        Registry::_unsetInstance();
        DojoHelper::setUseDeclarative();

        $this->view   = $this->getView();
    }
Example #2
0
 public function testOnlyIdShouldBeNecessary()
 {
     DojoHelper::setUseDeclarative();
     $html = $this->view->form('foo');
     $this->assertRegexp('/<form[^>]*(dojoType="dijit.form.Form")/', $html, $html);
     $this->assertRegexp('/<form[^>]*(id="foo")/', $html, $html);
 }
Example #3
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Registry::_unsetInstance();
     DojoHelper::setUseDeclarative();
     $this->view = $this->getView();
     $this->helper = new TextareaHelper();
     $this->helper->setView($this->view);
 }
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Registry::_unsetInstance();
     DojoHelper::setUseDeclarative();
     $this->view = $this->getView();
     $this->helper = new AccordionContainerHelper();
     $this->helper->setView($this->view);
 }
Example #5
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Registry::_unsetInstance();
     DojoHelper::setUseDeclarative();
     $this->view = $this->getView();
     $this->decorator = new TabContainerDecorator();
     $this->element = $this->getElement();
     $this->element->setView($this->view);
     $this->decorator->setElement($this->element);
 }
Example #6
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     Registry::_unsetInstance();
     DojoHelper::setUseDeclarative();
     $this->errors = array();
     $this->view = $this->getView();
     $this->decorator = new DijitElementDecorator();
     $this->element = $this->getElement();
     $this->element->setView($this->view);
     $this->decorator->setElement($this->element);
 }
Example #7
0
 /**
  * @group ZF-3962
  */
 public function testHelperShouldAllowDisablingParseOnLoadWithDeclarativeStyle()
 {
     DojoHelper::setUseDeclarative();
     $this->helper->requireModule('dijit.layout.ContentPane')
                  ->setDjConfigOption('parseOnLoad', 'false')
                  ->enable();
     $html = $this->helper->__toString();
     if (!preg_match('/(var djConfig = .*?(?:};))/s', $html, $matches)) {
         $this->fail('Failed to find djConfig settings: ' . $html);
     }
     $this->assertNotContains('"parseOnLoad":true', $matches[1]);
 }