projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15875 from civicrm/5.20
[civicrm-core.git]
/
tests
/
templates
/
documentFunction.tpl
diff --git
a/tests/templates/documentFunction.tpl
b/tests/templates/documentFunction.tpl
index 43293eeda32672b03f64a421c05c0e8b741834c1..199226399f33591272972755db2d6ed2a3d8d1b1 100644
(file)
--- a/
tests/templates/documentFunction.tpl
+++ b/
tests/templates/documentFunction.tpl
@@
-29,11
+29,12
@@
function {$function}_example() {literal}{{/literal}
$errorMessage = $e->getMessage();
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
$errorMessage = $e->getMessage();
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
- return array(
- 'error' => $errorMessage,
+ return [
+ 'is_error' => 1,
+ 'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
'error_code' => $errorCode,
'error_data' => $errorData,
-
)
;
+
]
;
}{/literal}
return $result;
}{/literal}
return $result;
@@
-59,17
+60,17
@@
function {$function}_expectedresult() {literal}{{/literal}
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/{$testFile}
*
* You can see the outcome of the API tests at
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/{$testFile}
*
* You can see the outcome of the API tests at
-* https://test.civicrm.org/job/CiviCRM-
master-git
/
+* https://test.civicrm.org/job/CiviCRM-
Core-Matrix
/
*
* To Learn about the API read
*
* To Learn about the API read
-* http
://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
+* http
s://docs.civicrm.org/dev/en/latest/api/
*
*
-* Browse the
api on your own site with the api explorer
-*
http://MYSITE.ORG/path/to/civicrm/api
+* Browse the
API on your own site with the API Explorer. It is in the main
+*
CiviCRM menu, under: Support > Development > API Explorer.
*
* Read more about testing here
*
* Read more about testing here
-* http
://wiki.civicrm.org/confluence/display/CRM/Testing
+* http
s://docs.civicrm.org/dev/en/latest/testing/
*
* API Standards documentation:
*
* API Standards documentation:
-* http
://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
+* http
s://docs.civicrm.org/dev/en/latest/framework/api-architecture/
*/
*/