further test fix - ensure test processors can be loaded by ID
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 21 Jul 2015 08:56:10 +0000 (20:56 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 21 Jul 2015 08:58:07 +0000 (20:58 +1200)
Civi/Payment/System.php

index 2e69ad907c143b66572ae2c9c899f725f35a3661..7a19fb1092e871683b9d7e1eadfb531dd408f04c 100644 (file)
@@ -78,7 +78,7 @@ class System {
    * @throws \CiviCRM_API3_Exception
    */
   public function getById($id) {
-    $processor = civicrm_api3('payment_processor', 'getsingle', array('id' => $id));
+    $processor = civicrm_api3('payment_processor', 'getsingle', array('id' => $id, 'is_test' => NULL));
     return self::getByProcessor($processor);
   }