Example #1
0
 /**
  * @param $baseRowTotalInclTax
  * @param $baseRowWeeeTaxInclTax
  * @param $weeeEnabled
  * @param $includeWeee
  * @param $expectedValue
  * @dataProvider testGetDisplayPriceDataProvider
  */
 public function testGetBaseRowDisplayPriceInclTax($baseRowTotalInclTax, $baseRowWeeeTaxInclTax, $weeeEnabled, $includeWeee, $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->weeeHelper->expects($this->any())->method('typeOfDisplay')->with([WeeeDisplayConfig::DISPLAY_INCL_DESCR, WeeeDisplayConfig::DISPLAY_INCL], self::ZONE)->will($this->returnValue($includeWeee));
     $this->assertEquals($expectedValue, $this->renderer->getBaseRowDisplayPriceInclTax());
 }
Example #2
0
 /**
  * Return HTML for row price incl tax
  *
  * @return string
  */
 public function getRowPriceInclTaxHtml()
 {
     $baseRowPriceInclTax = $this->itemPriceRenderer->getBaseRowDisplayPriceInclTax();
     $rowPriceInclTax = $this->itemPriceRenderer->getRowDisplayPriceInclTax();
     return $this->displayPrices($baseRowPriceInclTax, $rowPriceInclTax);
 }