projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert changes to test and re-generate example from better test
[civicrm-core.git]
/
api
/
v3
/
examples
/
Contact
/
GetActions.php
diff --git
a/api/v3/examples/Contact/GetActions.php
b/api/v3/examples/Contact/GetActions.php
index 12012f6949561078daff496d4ebf1d5f543b0717..585e5e8dca83137190c6126b0b619d2837f1ad06 100644
(file)
--- a/
api/v3/examples/Contact/GetActions.php
+++ b/
api/v3/examples/Contact/GetActions.php
@@
-19,7
+19,8
@@
function contact_getactions_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
- 'error' => $errorMessage,
+ 'is_error' => 1,
+ 'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
'error_code' => $errorCode,
'error_data' => $errorData,
);
@@
-39,31
+40,28
@@
function contact_getactions_expectedresult() {
$expectedResult = array(
'is_error' => 0,
'version' => 3,
$expectedResult = array(
'is_error' => 0,
'version' => 3,
- 'count' => 2
3
,
+ 'count' => 2
0
,
'values' => array(
'0' => 'create',
'1' => 'delete',
'values' => array(
'0' => 'create',
'1' => 'delete',
- '2' => '
example_action1
',
- '3' => '
example_action2
',
- '4' => 'get',
- '5' => 'get
actions
',
- '6' => 'get
count
',
+ '2' => '
duplicatecheck
',
+ '3' => '
get
',
+ '4' => 'get
actions
',
+ '5' => 'get
count
',
+ '6' => 'get
field
',
'7' => 'getfields',
'8' => 'getlist',
'9' => 'getoptions',
'10' => 'getquick',
'11' => 'getrefcount',
'12' => 'getsingle',
'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".',
),
'deprecated' => array(
'getquick' => 'The "getquick" action is deprecated in favor of "getlist".',