X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FParticipantPayment%2FGet.php;h=eaf18755b83e3af0c7efe31188ec55c339db379e;hb=0ac9d0bf0e8e29161e9080a3c79d5044e5d1a8b9;hp=7b919f5934ac8f09f3fb72829b4b8893ba82a077;hpb=1e94e997c66872d420b31d5adc2226db82f448b9;p=civicrm-core.git diff --git a/api/v3/examples/ParticipantPayment/Get.php b/api/v3/examples/ParticipantPayment/Get.php index 7b919f5934..eaf18755b8 100644 --- a/api/v3/examples/ParticipantPayment/Get.php +++ b/api/v3/examples/ParticipantPayment/Get.php @@ -1,6 +1,6 @@ getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -54,11 +55,10 @@ function participant_payment_get_expectedresult() { return $expectedResult; } -/** +/* * This example has been generated from the API test suite. -* The test that created it is called -* testGet -* and can be found in +* The test that created it is called "testGet" +* and can be found at: * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php * * You can see the outcome of the API tests at