public function testGetPriceInclTax() { $itemMock = $this->getMock('Magento\\Framework\\Object', ['getPriceInclTax'], [], '', false); $itemMock->expects($this->exactly(2))->method('getPriceInclTax')->will($this->returnValue(5.5)); $this->assertEquals(5.5, $this->_helper->getPriceInclTax($itemMock)); }
/** * Display item price including tax * * @param Item|\Magento\Framework\DataObject $item * @return string */ public function displayPriceInclTax(\Magento\Framework\DataObject $item) { return $this->displayPrices($this->_checkoutHelper->getBasePriceInclTax($item), $this->_checkoutHelper->getPriceInclTax($item)); }