6 function contribution_page_get_example(){
11 'financial_type_id' => 1,
14 $result = civicrm_api( 'contribution_page','get',$params );
20 * Function returns array of result expected from previous function
22 function contribution_page_get_expectedresult(){
24 $expectedResult = array(
32 'title' => 'Test Contribution Page',
33 'financial_type_id' => '1',
34 'is_credit_card_only' => 0,
37 'is_confirm_enabled' => '1',
38 'is_recur_interval' => 0,
39 'is_recur_installments' => 0,
41 'is_partial_payment' => 0,
42 'is_allow_other_amount' => 0,
43 'goal_amount' => '34567.00',
44 'is_for_organization' => 0,
45 'is_email_receipt' => 0,
46 'amount_block_is_active' => '1',
53 return $expectedResult ;
58 * This example has been generated from the API test suite. The test that created it is called
60 * testGetContributionPageByAmount and can be found in
61 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ContributionPageTest.php
63 * You can see the outcome of the API tests at
64 * http://tests.dev.civicrm.org/trunk/results-api_v3
66 * To Learn about the API read
67 * http://book.civicrm.org/developer/current/techniques/api/
69 * and review the wiki at
70 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
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