/** * @param $baseRowTotal * @param $baseRowWeeeTaxExclTax * @param $weeeEnabled * @param $expectedValue * @dataProvider testGetFinalDisplayPriceDataProvider */ public function testGetBaseFianlRowDisplayPriceExclTax($baseRowTotal, $baseRowWeeeTaxExclTax, $weeeEnabled, $expectedValue) { $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled)); $this->item->expects($this->any())->method('getBaseWeeeTaxAppliedRowAmnt')->will($this->returnValue($baseRowWeeeTaxExclTax)); $this->item->expects($this->once())->method('getBaseRowTotal')->will($this->returnValue($baseRowTotal)); $this->assertEquals($expectedValue, $this->renderer->getBaseFinalRowDisplayPriceExclTax()); }
/** * 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); }