Пример #1
0
 /**
  * Reset quote and address applied rules
  *
  * @param Address $address
  * @return $this
  */
 public function reset(Address $address)
 {
     $this->validatorUtility->resetRoundingDeltas();
     if ($this->_isFirstTimeResetRun) {
         $address->setAppliedRuleIds('');
         $address->getQuote()->setAppliedRuleIds('');
         $this->_isFirstTimeResetRun = false;
     }
     return $this;
 }
Пример #2
0
 public function testResetRoundingDeltas()
 {
     $this->assertNull($this->utility->resetRoundingDeltas());
 }