示例#1
0
 /**
  * @param $baseRowTotalInclTax
  * @param $baseRowWeeeTaxInclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetBaseFinalRowDisplayPriceInclTax($baseRowTotalInclTax, $baseRowWeeeTaxInclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->weeeHelper->expects($this->any())->method('getBaseRowWeeeTaxInclTax')->with($this->item)->will($this->returnValue($baseRowWeeeTaxInclTax));
     $this->item->expects($this->once())->method('getBaseRowTotalInclTax')->will($this->returnValue($baseRowTotalInclTax));
     $this->assertEquals($expectedValue, $this->renderer->getBaseFinalRowDisplayPriceInclTax());
 }
示例#2
0
 /**
  * Return HTML for final row price incl tax
  *
  * @return string
  */
 public function getFinalRowPriceInclTaxHtml()
 {
     $baseRowPriceInclTax = $this->itemPriceRenderer->getBaseFinalRowDisplayPriceInclTax();
     $rowPriceInclTax = $this->itemPriceRenderer->getFinalRowDisplayPriceInclTax();
     return $this->displayPrices($baseRowPriceInclTax, $rowPriceInclTax);
 }