4f53d6f2 |
1 | <?php |
2 | |
3 | /* |
4 | |
5 | */ |
6 | function contribution_soft_delete_example(){ |
7 | $params = array( |
8 | 'id' => 1, |
9 | 'version' => 3, |
10 | ); |
11 | |
12 | $result = civicrm_api( 'contribution_soft','delete',$params ); |
13 | |
14 | return $result; |
15 | } |
16 | |
17 | /* |
18 | * Function returns array of result expected from previous function |
19 | */ |
20 | function contribution_soft_delete_expectedresult(){ |
21 | |
22 | $expectedResult = ''; |
23 | |
24 | return $expectedResult ; |
25 | } |
26 | |
27 | |
28 | /* |
29 | * This example has been generated from the API test suite. The test that created it is called |
30 | * |
31 | * testDeleteContributionSoft and can be found in |
32 | * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ContributionSoftTest.php |
33 | * |
34 | * You can see the outcome of the API tests at |
35 | * http://tests.dev.civicrm.org/trunk/results-api_v3 |
36 | * |
37 | * To Learn about the API read |
38 | * http://book.civicrm.org/developer/current/techniques/api/ |
39 | * |
40 | * and review the wiki at |
41 | * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs |
42 | * |
43 | * Read more about testing here |
44 | * http://wiki.civicrm.org/confluence/display/CRM/Testing |
45 | * |
46 | * API Standards documentation: |
47 | * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards |
48 | */ |