예제 #1
0
 public function testLoadLayout()
 {
     $layoutProcessor = $this->getMock('Magento\\Framework\\View\\Layout\\ProcessorInterface');
     $layoutProcessor->expects($this->once())->method('load');
     $this->layout->expects($this->once())->method('getUpdate')->will($this->returnValue($layoutProcessor));
     $this->layout->expects($this->once())->method('generateXml');
     $this->layout->expects($this->once())->method('generateElements');
     $this->model->loadLayout();
 }
예제 #2
0
 /**
  * Prepare layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $this->priceLayout->addHandle($this->getPriceRenderHandle());
     $this->priceLayout->loadLayout();
     return parent::_prepareLayout();
 }