Ejemplo n.º 1
0
 /**
  * {@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;
 }
Ejemplo n.º 2
0
 public function testLoadLayoutWhenXmlNotGenerated()
 {
     $this->_view->loadLayout('', true, false);
 }
Ejemplo n.º 3
0
 public function testLoadLayoutWhenXmlNotGenerated()
 {
     $this->_layoutMock->expects($this->never())->method('generateElements');
     $this->_layoutMock->expects($this->never())->method('generateXml');
     $this->_view->loadLayout('', true, false);
 }