Exceptions
authoreileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 21:35:48 +0000 (10:35 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 21:36:02 +0000 (10:36 +1300)
api/v3/Payment.php
tests/phpunit/api/v3/PaymentTest.php

index 84023028667580f8889d065ff9522fe6037cb74f..8198d1e9c18f9107ddb74de117e408e8c45854cb 100644 (file)
@@ -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 = [
index 0b85d83aa8e0713be20d629804dfa3e641413938..1f6f3e2215cf3aa30405b925d6ae7e49bde1c74d 100644 (file)
@@ -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'];