/** * @param $rowTotal * @param $rowWeeeTaxExclTax * @param $weeeEnabled * @param $expectedValue * @dataProvider testGetFinalDisplayPriceDataProvider */ public function testGetFianlRowDisplayPriceExclTax($rowTotal, $rowWeeeTaxExclTax, $weeeEnabled, $expectedValue) { $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled)); $this->item->expects($this->any())->method('getWeeeTaxAppliedRowAmount')->will($this->returnValue($rowWeeeTaxExclTax)); $this->item->expects($this->once())->method('getRowTotal')->will($this->returnValue($rowTotal)); $this->assertEquals($expectedValue, $this->renderer->getFinalRowDisplayPriceExclTax()); }
/** * Return HTML for final row price excl tax * * @return string */ public function getFinalRowPriceExclTaxHtml() { $baseRowPriceExclTax = $this->itemPriceRenderer->getBaseFinalRowDisplayPriceExclTax(); $rowPriceExclTax = $this->itemPriceRenderer->getFinalRowDisplayPriceExclTax(); return $this->displayPrices($baseRowPriceExclTax, $rowPriceExclTax); }