Exemplo n.º 1
0
 /**
  * @param $basePriceInclTax
  * @param $baseWeeeTaxInclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetBaseFinalUnitDisplayPriceInclTax($basePriceInclTax, $baseWeeeTaxInclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->weeeHelper->expects($this->any())->method('getBaseWeeeTaxInclTax')->with($this->item)->will($this->returnValue($baseWeeeTaxInclTax));
     $this->item->expects($this->once())->method('getBasePriceInclTax')->will($this->returnValue($basePriceInclTax));
     $this->assertEquals($expectedValue, $this->renderer->getBaseFinalUnitDisplayPriceInclTax());
 }
Exemplo n.º 2
0
 /**
  * Return HTML for final unit price incl tax
  *
  * @return string
  */
 public function getFinalUnitPriceInclTaxHtml()
 {
     $baseUnitPriceInclTax = $this->itemPriceRenderer->getBaseFinalUnitDisplayPriceInclTax();
     $unitPriceInclTax = $this->itemPriceRenderer->getFinalUnitDisplayPriceInclTax();
     return $this->displayPrices($baseUnitPriceInclTax, $unitPriceInclTax);
 }