示例#1
0
 /**
  * @param $rowTotalInclTax
  * @param $rowWeeeTaxInclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetFinalRowDisplayPriceInclTax($rowTotalInclTax, $rowWeeeTaxInclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->weeeHelper->expects($this->any())->method('getRowWeeeTaxInclTax')->with($this->item)->will($this->returnValue($rowWeeeTaxInclTax));
     $this->item->expects($this->once())->method('getRowTotalInclTax')->will($this->returnValue($rowTotalInclTax));
     $this->assertEquals($expectedValue, $this->renderer->getFinalRowDisplayPriceInclTax());
 }
示例#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);
 }