/** * @param $rowTotalInclTax * @param $rowWeeeTaxInclTax * @param $weeeEnabled * @param $expectedValue * @dataProvider testGetFinalDisplayPriceDataProvider */ public function testGetFinalRowDisplayPriceInclTax($rowTotalInclTax, $rowWeeeTaxInclTax, $weeeEnabled, $expectedValue) { $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled)); $this->weeeHelper->expects($this->any())->method('getRowWeeeTaxInclTax')->with($this->item)->will($this->returnValue($rowWeeeTaxInclTax)); $this->item->expects($this->once())->method('getRowTotalInclTax')->will($this->returnValue($rowTotalInclTax)); $this->assertEquals($expectedValue, $this->renderer->getFinalRowDisplayPriceInclTax()); }
/** * Return HTML for final row price incl tax * * @return string */ public function getFinalRowPriceInclTaxHtml() { $baseRowPriceInclTax = $this->itemPriceRenderer->getBaseFinalRowDisplayPriceInclTax(); $rowPriceInclTax = $this->itemPriceRenderer->getFinalRowDisplayPriceInclTax(); return $this->displayPrices($baseRowPriceInclTax, $rowPriceInclTax); }