/**
  * Helper function that tears down some default rules
  */
 private function tearDownDefaultRules()
 {
     if ($this->taxRules) {
         $this->taxRuleFixtureFactory->deleteTaxRules(array_values($this->taxRules));
     }
     if ($this->taxRates) {
         $this->taxRuleFixtureFactory->deleteTaxRates(array_values($this->taxRates));
     }
     if ($this->taxClasses) {
         $this->taxRuleFixtureFactory->deleteTaxClasses(array_values($this->taxClasses));
     }
 }
Beispiel #2
0
 /**
  * Helper function that tears down some default rules
  */
 public function tearDown()
 {
     $this->taxRuleFixtureFactory->deleteTaxRules(array_values($this->taxRules));
     $this->taxRuleFixtureFactory->deleteTaxRates(array_values($this->taxRates));
     $this->taxRuleFixtureFactory->deleteTaxClasses(array_values($this->taxClasses));
 }