コード例 #1
0
 /**
  * @param $interceptedInput
  * @param $price
  * @return array
  */
 public function beforeRound($interceptedInput, $price)
 {
     if ($this->_helper->isEnabled()) {
         $price = round($price * 20) / 20;
     }
     return [$price];
 }
コード例 #2
0
 /**
  * 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());
 }