CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Participant / NestedDelete.php
index 2e95fc755988e3575f6b329bad20fe590ae0c67e..48277c28b441db8ac9622a3da3163a32cc083c1a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using participant Get API.
+ * Test Generated example demonstrating the Participant.get API.
  *
  * Criteria delete by nesting a GET & a DELETE.
  *
@@ -14,7 +14,7 @@ function participant_get_example() {
   );
 
   try{
-    $result = civicrm_api3('participant', 'Get', $params);
+    $result = civicrm_api3('Participant', 'get', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -120,11 +120,10 @@ function participant_get_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testNestedDelete
-* and can be found in
+* The test that created it is called "testNestedDelete"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php
 *
 * You can see the outcome of the API tests at