예제 #1
0
 /**
  * @param $priceInclTax
  * @param $weeeTaxInclTax
  * @param $weeeEnabled
  * @param $expectedValue
  * @dataProvider testGetFinalDisplayPriceDataProvider
  */
 public function testGetFinalUnitDisplayPriceInclTax($priceInclTax, $weeeTaxInclTax, $weeeEnabled, $expectedValue)
 {
     $this->weeeHelper->expects($this->once())->method('isEnabled')->will($this->returnValue($weeeEnabled));
     $this->weeeHelper->expects($this->any())->method('getWeeeTaxInclTax')->with($this->item)->will($this->returnValue($weeeTaxInclTax));
     $this->item->expects($this->once())->method('getPriceInclTax')->will($this->returnValue($priceInclTax));
     $this->assertEquals($expectedValue, $this->renderer->getFinalUnitDisplayPriceInclTax());
 }
예제 #2
0
파일: Renderer.php 프로젝트: aiesh/magento2
 /**
  * Return HTML for final unit price incl tax
  *
  * @return string
  */
 public function getFinalUnitPriceInclTaxHtml()
 {
     $baseUnitPriceInclTax = $this->itemPriceRenderer->getBaseFinalUnitDisplayPriceInclTax();
     $unitPriceInclTax = $this->itemPriceRenderer->getFinalUnitDisplayPriceInclTax();
     return $this->displayPrices($baseUnitPriceInclTax, $unitPriceInclTax);
 }