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(); }
/** * Prepare layout * * @return $this */ protected function _prepareLayout() { $this->priceLayout->addHandle($this->getPriceRenderHandle()); $this->priceLayout->loadLayout(); return parent::_prepareLayout(); }