/** * @param $rowTotal * @param $rowWeeeTaxExclTax * @param $weeeEnabled * @param $includeWeee * @param $expectedValue * @dataProvider testGetDisplayPriceDataProvider */ public function testGetRowDisplayPriceExclTax($rowTotal, $rowWeeeTaxExclTax, $weeeEnabled, $includeWeee, $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->weeeHelper->expects($this->any())->method('typeOfDisplay')->with([WeeeDisplayConfig::DISPLAY_INCL_DESCR, WeeeDisplayConfig::DISPLAY_INCL], self::ZONE)->will($this->returnValue($includeWeee)); $this->assertEquals($expectedValue, $this->renderer->getRowDisplayPriceExclTax()); }
/** * Return HTML for row price excl tax * * @return string */ public function getRowPriceExclTaxHtml() { $baseRowPriceExclTax = $this->itemPriceRenderer->getBaseRowDisplayPriceExclTax(); $rowPriceExclTax = $this->itemPriceRenderer->getRowDisplayPriceExclTax(); return $this->displayPrices($baseRowPriceExclTax, $rowPriceExclTax); }