6 function participant_status_type_create_example(){
9 'name' => 'test status',
10 'label' => 'I am a test',
11 'class' => 'Positive',
19 $result = civicrm_api( 'participant_status_type','create',$params );
25 * Function returns array of result expected from previous function
27 function participant_status_type_create_expectedresult(){
29 $expectedResult = array(
37 'name' => 'test status',
38 'label' => 'I am a test',
39 'class' => 'Positive',
44 'visibility_id' => '1',
49 return $expectedResult ;
54 * This example has been generated from the API test suite. The test that created it is called
56 * testCreateParticipantStatusType and can be found in
57 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ParticipantStatusTypeTest.php
59 * You can see the outcome of the API tests at
60 * http://tests.dev.civicrm.org/trunk/results-api_v3
62 * To Learn about the API read
63 * http://book.civicrm.org/developer/current/techniques/api/
65 * and review the wiki at
66 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
68 * Read more about testing here
69 * http://wiki.civicrm.org/confluence/display/CRM/Testing
71 * API Standards documentation:
72 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards