6 function contribution_recur_create_example(){
10 'installments' => '12',
11 'frequency_interval' => '1',
13 'contribution_status_id' => 1,
14 'start_date' => '2012-01-01 00:00:00',
16 'frequency_unit' => 'day',
19 $result = civicrm_api( 'contribution_recur','create',$params );
25 * Function returns array of result expected from previous function
27 function contribution_recur_create_expectedresult(){
29 $expectedResult = array(
40 'frequency_unit' => 'day',
41 'frequency_interval' => '1',
42 'installments' => '12',
43 'start_date' => '20120101000000',
44 'create_date' => '20130204222627',
45 'modified_date' => '2012-11-14 16:02:35',
51 'contribution_status_id' => '1',
54 'next_sched_contribution' => '',
55 'failure_count' => '',
56 'failure_retry_date' => '',
58 'payment_processor_id' => '',
59 'financial_type_id' => '',
60 'payment_instrument_id' => '',
62 'is_email_receipt' => '',
67 return $expectedResult ;
72 * This example has been generated from the API test suite. The test that created it is called
74 * testCreateContributionRecur and can be found in
75 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ContributionRecurTest.php
77 * You can see the outcome of the API tests at
78 * http://tests.dev.civicrm.org/trunk/results-api_v3
80 * To Learn about the API read
81 * http://book.civicrm.org/developer/current/techniques/api/
83 * and review the wiki at
84 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
86 * Read more about testing here
87 * http://wiki.civicrm.org/confluence/display/CRM/Testing
89 * API Standards documentation:
90 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards