6 function batch_create_example(){
8 'name' => 'New_Batch_03',
9 'title' => 'New Batch 03',
10 'description' => 'This is description for New Batch 03',
17 $result = civicrm_api( 'batch','create',$params );
23 * Function returns array of result expected from previous function
25 function batch_create_expectedresult(){
27 $expectedResult = array(
35 'name' => 'New_Batch_03',
36 'title' => 'New Batch 03',
37 'description' => 'This is description for New Batch 03',
41 'modified_date' => '2012-11-14 16:02:35',
42 'saved_search_id' => '',
48 'payment_instrument_id' => '',
49 'exported_date' => '',
54 return $expectedResult ;
59 * This example has been generated from the API test suite. The test that created it is called
61 * testCreate and can be found in
62 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/BatchTest.php
64 * You can see the outcome of the API tests at
65 * http://tests.dev.civicrm.org/trunk/results-api_v3
67 * To Learn about the API read
68 * http://book.civicrm.org/developer/current/techniques/api/
70 * and review the wiki at
71 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
73 * Read more about testing here
74 * http://wiki.civicrm.org/confluence/display/CRM/Testing
76 * API Standards documentation:
77 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards