示例#1
0
 /**
  * @param $priceExclTax
  * @param $weeeTaxExclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetFinalUnitDisplayPriceExclTax($priceExclTax, $weeeTaxExclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->item->expects($this->any())->method('getWeeeTaxAppliedAmount')->will($this->returnValue($weeeTaxExclTax));
     $this->item->expects($this->once())->method('getCalculationPrice')->will($this->returnValue($priceExclTax));
     $this->assertEquals($expectedValue, $this->renderer->getFinalUnitDisplayPriceExclTax());
 }
示例#2
0
 /**
  * Return HTML for final unit price excl tax
  *
  * @return string
  */
 public function getFinalUnitPriceExclTaxHtml()
 {
     $baseUnitPriceExclTax = $this->itemPriceRenderer->getBaseFinalUnitDisplayPriceExclTax();
     $unitPriceExclTax = $this->itemPriceRenderer->getFinalUnitDisplayPriceExclTax();
     return $this->displayPrices($baseUnitPriceExclTax, $unitPriceExclTax);
 }