CRM-13072 further tweak on example formatter
[civicrm-core.git] / api / v3 / examples / ParticipantStatusTypeDelete.php
CommitLineData
6a488035
TO
1<?php
2
3/*
4
5 */
6function participant_status_type_delete_example(){
53ca8fd7 7$params = array(
6a488035
TO
8 'version' => 3,
9 'name' => 'test status',
10 'label' => 'I am a test',
11 'class' => 'Positive',
12 'is_reserved' => 0,
13 'is_active' => 1,
14 'is_counted' => 1,
15 'visibility_id' => 1,
16 'weight' => 10,
17);
18
19 $result = civicrm_api( 'participant_status_type','delete',$params );
20
21 return $result;
22}
23
24/*
25 * Function returns array of result expected from previous function
26 */
27function participant_status_type_delete_expectedresult(){
28
53ca8fd7 29 $expectedResult = array(
6a488035
TO
30 'is_error' => 0,
31 'version' => 3,
32 'count' => 1,
33 'values' => true,
34);
35
36 return $expectedResult ;
37}
38
39
40/*
41* This example has been generated from the API test suite. The test that created it is called
42*
43* testDeleteParticipantStatusType and can be found in
44* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ParticipantStatusTypeTest.php
45*
46* You can see the outcome of the API tests at
47* http://tests.dev.civicrm.org/trunk/results-api_v3
48*
49* To Learn about the API read
50* http://book.civicrm.org/developer/current/techniques/api/
51*
52* and review the wiki at
53* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
54*
55* Read more about testing here
56* http://wiki.civicrm.org/confluence/display/CRM/Testing
57*
58* API Standards documentation:
59* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
60*/