示例#1
0
 /**
  * @param $rowTotalInclTax
  * @param $rowWeeeTaxInclTax
  * @param $weeeEnabled
  * @param $includeWeee
  * @param $expectedValue
  * @dataProvider testGetDisplayPriceDataProvider
  */
 public function testGetRowDisplayPriceInclTax($rowTotalInclTax, $rowWeeeTaxInclTax, $weeeEnabled, $includeWeee, $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->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->getRowDisplayPriceInclTax());
 }
示例#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);
 }