/** * @param $interceptedInput * @param $price * @return array */ public function beforeRound($interceptedInput, $price) { if ($this->_helper->isEnabled()) { $price = round($price * 20) / 20; } return [$price]; }
/** * Test the module is not enabled */ public function testIsNotEnabled() { $this->_scopeConfig->expects($this->once())->method('getValue')->will($this->returnValue(null)); $this->assertTrue(null === $this->_helper->isEnabled()); }