Revert changes to test and re-generate example from better test
[civicrm-core.git] / api / v3 / examples / Contact / GetActions.php
index f12c3fac94c81cbd28c1d8acd7d3ac0cc95f59f0..585e5e8dca83137190c6126b0b619d2837f1ad06 100644 (file)
@@ -19,7 +19,8 @@ function contact_getactions_example() {
     $errorCode = $e->getErrorCode();
     $errorData = $e->getExtraParams();
     return array(
-      'error' => $errorMessage,
+      'is_error' => 1,
+      'error_message' => $errorMessage,
       'error_code' => $errorCode,
       'error_data' => $errorData,
     );
@@ -39,34 +40,32 @@ function contact_getactions_expectedresult() {
   $expectedResult = array(
     'is_error' => 0,
     'version' => 3,
-    'count' => 23,
+    'count' => 20,
     'values' => array(
       '0' => 'create',
       '1' => 'delete',
-      '2' => 'example_action1',
-      '3' => 'example_action2',
-      '4' => 'get',
-      '5' => 'getactions',
-      '6' => 'getcount',
+      '2' => 'duplicatecheck',
+      '3' => 'get',
+      '4' => 'getactions',
+      '5' => 'getcount',
+      '6' => 'getfield',
       '7' => 'getfields',
       '8' => 'getlist',
       '9' => 'getoptions',
       '10' => 'getquick',
       '11' => 'getrefcount',
       '12' => 'getsingle',
-      '13' => 'getstat',
-      '14' => 'getvalue',
-      '15' => 'merge',
-      '16' => 'proximity',
-      '17' => 'replace',
-      '18' => 'setvalue',
-      '19' => 'type_create',
-      '20' => 'type_delete',
-      '21' => 'type_get',
-      '22' => 'update',
+      '13' => 'getvalue',
+      '14' => 'merge',
+      '15' => 'proximity',
+      '16' => 'replace',
+      '17' => 'setvalue',
+      '18' => 'update',
+      '19' => 'validate',
     ),
     'deprecated' => array(
       'getquick' => 'The "getquick" action is deprecated in favor of "getlist".',
+      'setvalue' => 'The "setvalue" action is deprecated. Use "create" with an id instead.',
       'update' => 'The "update" action is deprecated. Use "create" with an id instead.',
     ),
   );