X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=inline;f=tests%2Fphpunit%2Fapi%2Fv3%2FPaymentProcessorTest.php;h=77b6611c2af3183ecf4d7d1307460a7e7b472386;hb=791c263cc4152fbd87f82fccbc1c1f2416e8d2d7;hp=4f79205213da56249369786d453606a81c685001;hpb=a38a89fc945790e86e0fd5c91141d8b7c2675021;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/PaymentProcessorTest.php b/tests/phpunit/api/v3/PaymentProcessorTest.php index 4f79205213..77b6611c2a 100644 --- a/tests/phpunit/api/v3/PaymentProcessorTest.php +++ b/tests/phpunit/api/v3/PaymentProcessorTest.php @@ -90,7 +90,7 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase { ); $result = civicrm_api('payment_processor', 'create', $payProcParams); - $this->assertEquals($result['is_error'], 1); + $this->assertAPIFailure($result); } /** @@ -117,7 +117,7 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase { require_once 'api/v3/examples/PaymentProcessorCreate.php'; $result = payment_processor_create_example(); $expectedResult = payment_processor_create_expectedresult(); - $this->assertEquals($result['is_error'], 0); + $this->assertAPISuccess($result); } ///////////////// civicrm_payment_processor_delete methods @@ -135,7 +135,7 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase { $result = civicrm_api('payment_processor', 'delete', $params); $this->documentMe($params, $result, __FUNCTION__, __FILE__); - $this->assertEquals($result['is_error'], 0); + $this->assertAPISuccess($result); } ///////////////// civicrm_payment_processors_get methods