/** * @expectedException \RuntimeException * @expectedExceptionMessage Wrong Price Rendering layout configuration. Factory block is missed */ public function testAmountRenderNoRenderPool() { $this->priceLayout->expects($this->once())->method('getBlock')->with('render.product.prices')->will($this->returnValue(false)); $this->model->renderAmount($this->amount, $this->price, $this->saleableItem); }