X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FSurvey%2FChainedGetDelete.php;h=860366008bd5dee54826408773d33e276ccd91c4;hb=35348e87945985be63814c13b72fb4250fc1d8b8;hp=eecfd4a1bb57224282f0a7d693cb9141c5251cf7;hpb=d915e35aa448a424f9e04611a4bec8249dacc332;p=civicrm-core.git diff --git a/api/v3/examples/Survey/ChainedGetDelete.php b/api/v3/examples/Survey/ChainedGetDelete.php index eecfd4a1bb..860366008b 100644 --- a/api/v3/examples/Survey/ChainedGetDelete.php +++ b/api/v3/examples/Survey/ChainedGetDelete.php @@ -1,6 +1,6 @@ getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -60,7 +61,7 @@ function survey_get_expectedresult() { 'is_error' => 0, 'version' => 3, 'count' => 1, - 'values' => TRUE, + 'values' => 1, ), ), ), @@ -69,11 +70,10 @@ function survey_get_expectedresult() { return $expectedResult; } -/** +/* * This example has been generated from the API test suite. -* The test that created it is called -* testGetSurveyChainDelete -* and can be found in +* The test that created it is called "testGetSurveyChainDelete" +* and can be found at: * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php * * You can see the outcome of the API tests at