X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Ftemplates%2FdocumentFunction.tpl;h=5a40ea76e7e3f74f5e70a10b6eb60441f65f3e04;hb=821a213036e02a4bed1495533fc25c7baaaaff1e;hp=2cb738bf5cae3c0647b6a29dcf2c4cd545b12a8a;hpb=0c13f046fbd8685570e4bccb6ac43c6058d3f8ae;p=civicrm-core.git diff --git a/tests/templates/documentFunction.tpl b/tests/templates/documentFunction.tpl index 2cb738bf5c..5a40ea76e7 100644 --- a/tests/templates/documentFunction.tpl +++ b/tests/templates/documentFunction.tpl @@ -1,17 +1,20 @@ {literal}getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -49,12 +53,11 @@ function {$function}_expectedresult() {literal}{{/literal} return $expectedResult; {literal}}{/literal} -/** +/* * This example has been generated from the API test suite. -* The test that created it is called -* {$testfunction} -* and can be found in -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/{$filename} +* The test that created it is called "{$testFunction}" +* and can be found 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/ @@ -63,7 +66,7 @@ function {$function}_expectedresult() {literal}{{/literal} * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API * * Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api/explorer +* http://MYSITE.ORG/path/to/civicrm/api * * Read more about testing here * http://wiki.civicrm.org/confluence/display/CRM/Testing