6 function price_field_value_create_example(){
9 'price_field_id' => 13,
10 'membership_type_id' => 5,
12 'label' => 'memType1',
14 'membership_num_terms' => 2,
16 'financial_type_id' => 2,
19 $result = civicrm_api( 'price_field_value','create',$params );
25 * Function returns array of result expected from previous function
27 function price_field_value_create_expectedresult(){
29 $expectedResult = array(
37 'price_field_id' => '13',
39 'label' => 'memType1',
45 'membership_type_id' => '5',
46 'membership_num_terms' => '2',
49 'financial_type_id' => '2',
50 'deductible_amount' => '',
55 return $expectedResult ;
60 * This example has been generated from the API test suite. The test that created it is called
62 * testCreatePriceFieldValuewithMultipleTerms and can be found in
63 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PriceFieldValueTest.php
65 * You can see the outcome of the API tests at
66 * http://tests.dev.civicrm.org/trunk/results-api_v3
68 * To Learn about the API read
69 * http://book.civicrm.org/developer/current/techniques/api/
71 * and review the wiki at
72 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
74 * Read more about testing here
75 * http://wiki.civicrm.org/confluence/display/CRM/Testing
77 * API Standards documentation:
78 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards