3 * Test Generated example of using pledge_payment get API
6 function pledge_payment_get_example(){
10 $result = civicrm_api3('pledge_payment', 'get', $params);
12 catch (CiviCRM_API3_Exception
$e) {
14 $errorMessage = $e->getMessage();
15 $errorCode = $e->getErrorCode();
16 $errorData = $e->getExtraParams();
17 return array('error' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData);
24 * Function returns array of result expected from previous function
26 function pledge_payment_get_expectedresult(){
28 $expectedResult = array(
36 'scheduled_amount' => '20.00',
38 'scheduled_date' => '20130728085413',
39 'reminder_count' => 0,
45 'scheduled_amount' => '20.00',
47 'scheduled_date' => '20130728085413',
48 'reminder_count' => 0,
54 'scheduled_amount' => '20.00',
56 'scheduled_date' => '20130728085413',
57 'reminder_count' => 0,
63 'scheduled_amount' => '20.00',
65 'scheduled_date' => '20130728085413',
66 'reminder_count' => 0,
72 'scheduled_amount' => '20.00',
74 'scheduled_date' => '20130728085413',
75 'reminder_count' => 0,
81 return $expectedResult;
86 * This example has been generated from the API test suite. The test that created it is called
88 * testGetPledgePayment and can be found in
89 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PledgePaymentTest.php
91 * You can see the outcome of the API tests at
92 * http://tests.dev.civicrm.org/trunk/results-api_v3
94 * To Learn about the API read
95 * http://book.civicrm.org/developer/current/techniques/api/
97 * and review the wiki at
98 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
100 * Read more about testing here
101 * http://wiki.civicrm.org/confluence/display/CRM/Testing
103 * API Standards documentation:
104 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards