4 * Test Generated API Example.
5 * See bottom of this file for more detail.
9 * Test Generated example of using contribution_recur delete API.
15 function contribution_recur_delete_example() {
21 $result = civicrm_api3('contribution_recur', 'delete', $params);
23 catch (CiviCRM_API3_Exception
$e) {
25 $errorMessage = $e->getMessage();
26 $errorCode = $e->getErrorCode();
27 $errorData = $e->getExtraParams();
29 'error' => $errorMessage,
30 'error_code' => $errorCode,
31 'error_data' => $errorData,
39 * Function returns array of result expected from previous function.
44 function contribution_recur_delete_expectedresult() {
46 $expectedResult = array(
53 return $expectedResult;
57 * This example has been generated from the API test suite.
58 * The test that created it is called
59 * testDeleteContributionRecur
61 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php
63 * You can see the outcome of the API tests at
64 * https://test.civicrm.org/job/CiviCRM-master-git/
66 * To Learn about the API read
67 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
69 * Browse the api on your own site with the api explorer
70 * http://MYSITE.ORG/path/to/civicrm/api/explorer
72 * Read more about testing here
73 * http://wiki.civicrm.org/confluence/display/CRM/Testing
75 * API Standards documentation:
76 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards