update test generated examples
[civicrm-core.git] / api / v3 / examples / BatchUpdate.php
index af057792cd619dfb7a7b3cb73227463c3cd1242c..2b2fa5088918130b6e28a7628fbd56c3591bedfc 100644 (file)
@@ -4,14 +4,15 @@
  
  */
 function batch_update_example(){
-$params = array( 
+$params = array(
   'name' => 'New_Batch_04',
   'title' => 'New Batch 04',
   'description' => 'This is description for New Batch 04',
   'total' => '400.44',
   'item_count' => 4,
+  'id' => 1,
   'version' => 3,
-  'id' => 3,
+  'debug' => 0,
 );
 
   $result = civicrm_api( 'batch','update',$params );
@@ -24,19 +25,19 @@ $params = array(
  */
 function batch_update_expectedresult(){
 
-  $expectedResult = array( 
+  $expectedResult = array(
   'is_error' => 0,
   'version' => 3,
   'count' => 1,
-  'id' => 3,
-  'values' => array( 
-      '3' => array( 
-          'id' => '3',
+  'id' => 1,
+  'values' => array(
+      '1' => array(
+          'id' => '1',
           'name' => 'New_Batch_04',
           'title' => 'New Batch 04',
           'description' => 'This is description for New Batch 04',
           'created_id' => '',
-          'created_date' => '',
+          'created_date' => '20120130621222105',
           'modified_id' => '',
           'modified_date' => '2012-11-14 16:02:35',
           'saved_search_id' => '',