/** * {@inheritdoc} */ public function loadLayout($handles = null, $generateBlocks = true, $generateXml = true, $addActionHandles = true) { parent::loadLayout($handles, false, $generateXml, $addActionHandles); $this->_aclFilter->filterAclNodes($this->getLayout()->getNode()); if ($generateBlocks) { $this->generateLayoutBlocks(); $this->_isLayoutLoaded = true; } $this->getLayout()->initMessages(); return $this; }
public function testLoadLayoutWhenXmlNotGenerated() { $this->_view->loadLayout('', true, false); }
public function testLoadLayoutWhenXmlNotGenerated() { $this->_layoutMock->expects($this->never())->method('generateElements'); $this->_layoutMock->expects($this->never())->method('generateXml'); $this->_view->loadLayout('', true, false); }