Example #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());
 }
Example #2
0
 /**
  * Return whether display setting is to display price including tax
  *
  * @return bool
  */
 public function displayPriceInclTax()
 {
     return $this->itemPriceRenderer->displayPriceInclTax();
 }