コード例 #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
ファイル: Renderer.php プロジェクト: aiesh/magento2
 /**
  * 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);
 }