public function testRenderingShouldCreateZendDijitsObjectAndAddOnloadForDijitsWhenDijitsArePresent() { $this->helper->enable(); $this->testShouldAllowAddingMultipleDijitsAtOnce(); $json = $this->helper->dijitsToJson(); $html = $this->helper->__toString(); $this->assertContains($json, $html, $html); $found = false; foreach ($this->helper->_getZendLoadActions() as $action) { if (strstr($action, 'dojo.mixin')) { $found = true; break; } } $this->assertTrue($found, 'Dijit onload action not created'); $this->assertContains($action, $html); }