示例#1
0
 /**
  * @param $baseRowTotal
  * @param $baseRowWeeeTaxExclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetBaseFianlRowDisplayPriceExclTax($baseRowTotal, $baseRowWeeeTaxExclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->item->expects($this->any())->method('getBaseWeeeTaxAppliedRowAmnt')->will($this->returnValue($baseRowWeeeTaxExclTax));
     $this->item->expects($this->once())->method('getBaseRowTotal')->will($this->returnValue($baseRowTotal));
     $this->assertEquals($expectedValue, $this->renderer->getBaseFinalRowDisplayPriceExclTax());
 }
示例#2
0
 /**
  * Return HTML for final row price excl tax
  *
  * @return string
  */
 public function getFinalRowPriceExclTaxHtml()
 {
     $baseRowPriceExclTax = $this->itemPriceRenderer->getBaseFinalRowDisplayPriceExclTax();
     $rowPriceExclTax = $this->itemPriceRenderer->getFinalRowDisplayPriceExclTax();
     return $this->displayPrices($baseRowPriceExclTax, $rowPriceExclTax);
 }