X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Ftemplates%2FdocumentFunction.tpl;h=199226399f33591272972755db2d6ed2a3d8d1b1;hb=065ae5121ab2a29482f329c035f2f3d4d0654e4a;hp=5a40ea76e7e3f74f5e70a10b6eb60441f65f3e04;hpb=168c8fec762efd3647119ac7440b1300885621df;p=civicrm-core.git diff --git a/tests/templates/documentFunction.tpl b/tests/templates/documentFunction.tpl index 5a40ea76e7..199226399f 100644 --- a/tests/templates/documentFunction.tpl +++ b/tests/templates/documentFunction.tpl @@ -29,12 +29,12 @@ function {$function}_example() {literal}{{/literal} $errorMessage = $e->getMessage(); $errorCode = $e->getErrorCode(); $errorData = $e->getExtraParams(); - return array( + return [ 'is_error' => 1, 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, - ); + ]; }{/literal} return $result; @@ -60,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://test.civicrm.org/job/CiviCRM-master-git/ +* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ * * To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API +* https://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 -* http://wiki.civicrm.org/confluence/display/CRM/Testing +* https://docs.civicrm.org/dev/en/latest/testing/ * * API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards +* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ */