コード例 #1
0
 /**
  * Test displayPriceInclTax
  *
  * @param string $zone
  * @param string $methodName
  * @dataProvider testDisplayPriceInclTaxDataProvider
  */
 public function testDisplayPriceInclTax($zone, $methodName)
 {
     $storeId = 1;
     $flag = true;
     $itemMock = $this->getItemMockWithStoreId($storeId);
     $this->renderer->setItem($itemMock);
     $this->renderer->setZone($zone);
     $this->taxHelper->expects($this->once())->method($methodName)->with($storeId)->will($this->returnValue($flag));
     $this->assertEquals($flag, $this->renderer->displayPriceInclTax());
 }
コード例 #2
0
ファイル: Renderer.php プロジェクト: aiesh/magento2
 /**
  * Return whether display setting is to display price including tax
  *
  * @return bool
  */
 public function displayPriceInclTax()
 {
     return $this->itemPriceRenderer->displayPriceInclTax();
 }