6 function price_set_create_example(){
9 'name' => 'default_goat_priceset',
10 'title' => 'Goat accessories',
12 'help_pre' => 'Please describe your goat in detail',
13 'help_post' => 'thank you for your time',
15 'financial_type_id' => 1,
16 'is_quick_config' => 1,
20 $result = civicrm_api( 'price_set','create',$params );
26 * Function returns array of result expected from previous function
28 function price_set_create_expectedresult(){
30 $expectedResult = array(
39 'name' => 'default_goat_priceset',
40 'title' => 'Goat accessories',
42 'help_pre' => 'Please describe your goat in detail',
43 'help_post' => 'thank you for your time',
46 'financial_type_id' => '1',
47 'is_quick_config' => '1',
53 return $expectedResult ;
58 * This example has been generated from the API test suite. The test that created it is called
60 * testCreatePriceSet and can be found in
61 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PriceSetTest.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