From 6aa56ee25839e6220bf6c9b12f1048d9fd961c6c Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 28 Oct 2019 10:35:48 +1300 Subject: [PATCH] Exceptions --- api/v3/Payment.php | 4 +++- tests/phpunit/api/v3/PaymentTest.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/v3/Payment.php b/api/v3/Payment.php index 8402302866..8198d1e9c1 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -97,9 +97,11 @@ function civicrm_api3_payment_delete($params) { * @param array $params * Input parameters. * - * @throws API_Exception * @return array * Api result array + * + * @throws \CiviCRM_API3_Exception + * @throws API_Exception */ function civicrm_api3_payment_cancel($params) { $eftParams = [ diff --git a/tests/phpunit/api/v3/PaymentTest.php b/tests/phpunit/api/v3/PaymentTest.php index 0b85d83aa8..1f6f3e2215 100644 --- a/tests/phpunit/api/v3/PaymentTest.php +++ b/tests/phpunit/api/v3/PaymentTest.php @@ -567,6 +567,8 @@ class api_v3_PaymentTest extends CiviUnitTestCase { * - 2 financial items totalling $300 linked to the Accounts receivable financial_trxn * - 6 entries in the civicrm_entity_financial_trxn linked to line items - totalling $450. * - 5 entries in the civicrm_entity_financial_trxn linked to contributions - totalling $550. + * + * @throws \CRM_Core_Exception */ public function testUpdatePayment() { CRM_Core_Config::singleton()->userPermissionClass->permissions = ['administer CiviCRM', 'access CiviContribute', 'edit contributions']; -- 2.25.1