/** * @param $baseRowTotal * @param $baseRowWeeeTaxExclTax * @param $weeeEnabled * @param $includeWeee * @param $expectedValue * @dataProvider testGetDisplayPriceDataProvider */ public function testGetBaseRowDisplayPriceExclTax($baseRowTotal, $baseRowWeeeTaxExclTax, $weeeEnabled, $includeWeee, $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->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->getBaseRowDisplayPriceExclTax()); }
/** * 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); }