Exemplo n.º 1
0
 /**
  * @param $basePriceExclTax
  * @param $baseWeeeTaxExclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetBaseFinalUnitDisplayPriceExclTax($basePriceExclTax, $baseWeeeTaxExclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->item->expects($this->any())->method('getBaseWeeeTaxAppliedAmount')->will($this->returnValue($baseWeeeTaxExclTax));
     $this->item->expects($this->once())->method('getBasePrice')->will($this->returnValue($basePriceExclTax));
     $this->assertEquals($expectedValue, $this->renderer->getBaseFinalUnitDisplayPriceExclTax());
 }
Exemplo n.º 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);
 }