Mass update tests to use callAPIFailure
[civicrm-core.git] / tests / phpunit / api / v3 / PaymentProcessorTest.php
index 77b6611c2af3183ecf4d7d1307460a7e7b472386..701a2e79557e25ca27869a57fbe48b2f2f6e4a41 100644 (file)
@@ -88,9 +88,7 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase {
       'is_active' => 1,
       'version' => $this->_apiversion,
     );
-    $result = civicrm_api('payment_processor', 'create', $payProcParams);
-
-    $this->assertAPIFailure($result);
+    $result = $this->callAPIFailure('payment_processor', 'create', $payProcParams);
   }
 
   /**