public function testBuild()
 {
     $this->model->setBuilder($this->builder);
     $this->builder->expects($this->once())->method('build')->will(
         $this->returnValue('Magento\Framework\View\LayoutInterface')
     );
     $this->model->publicBuild();
 }
Exemple #2
0
 /**
  * Build layout blocks from generic layouts and/or page configurations
  *
  * @return void
  */
 protected function build()
 {
     if (!empty($this->builder)) {
         $this->builder->build();
     }
 }