public function testSetLayout() { $priceRenderHandle = 'price_render_handle'; $this->priceLayout->expects($this->once())->method('addHandle')->with($priceRenderHandle); $this->priceLayout->expects($this->once())->method('loadLayout'); $layout = $this->getMock('Magento\\Framework\\View\\LayoutInterface'); $this->model->setPriceRenderHandle($priceRenderHandle); $this->model->setLayout($layout); }