Common.js lint fixes
[civicrm-core.git] / Civi / Payment / System.php
index f4f2fede0cc2e39d6eedd0c6c34a03eca80228b8..29538b64bf7d95cf75d80186c5d33048faa09229 100644 (file)
@@ -77,4 +77,14 @@ class System {
     return self::getByProcessor($processor);
   }
 
+  /**
+   * Flush processors from static cache.
+   *
+   * This is particularly used for tests.
+   *
+   */
+  public function flushProcessors() {
+    $this->cache = array();
+  }
+
 }