4 demonstrates use of return is_full
6 function event_getsingle_example(){
10 'return.is_full' => 1,
13 $result = civicrm_api( 'event','getsingle',$params );
19 * Function returns array of result expected from previous function
21 function event_getsingle_expectedresult(){
23 $expectedResult = array(
25 'title' => 'Annual CiviCRM meet',
26 'event_title' => 'Annual CiviCRM meet',
27 'event_type_id' => '1',
28 'participant_listing_id' => 0,
30 'start_date' => '2008-10-21 00:00:00',
31 'event_start_date' => '2008-10-21 00:00:00',
32 'is_online_registration' => 0,
33 'max_participants' => '1',
37 'is_show_location' => '1',
38 'default_role_id' => '1',
39 'is_email_confirm' => 0,
41 'is_partial_payment' => 0,
42 'is_multiple_registrations' => 0,
43 'allow_same_participant_emails' => 0,
45 'created_date' => '2013-06-22 08:49:03',
47 'available_places' => 0,
51 return $expectedResult ;
56 * This example has been generated from the API test suite. The test that created it is called
58 * testGetSingleReturnIsFull and can be found in
59 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/EventTest.php
61 * You can see the outcome of the API tests at
62 * http://tests.dev.civicrm.org/trunk/results-api_v3
64 * To Learn about the API read
65 * http://book.civicrm.org/developer/current/techniques/api/
67 * and review the wiki at
68 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
70 * Read more about testing here
71 * http://wiki.civicrm.org/confluence/display/CRM/Testing
73 * API Standards documentation:
74 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards