Example #1
0
 /**
  * Test displayPriceExclTax
  *
  * @param string $zone
  * @param string $methodName
  * @dataProvider testDisplayPriceExclTaxDataProvider
  */
 public function testDisplayPriceExclTax($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->displayPriceExclTax());
 }
Example #2
0
 /**
  * Return whether display setting is to display price excluding tax
  *
  * @return bool
  */
 public function displayPriceExclTax()
 {
     return $this->itemPriceRenderer->displayPriceExclTax();
 }