CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Event / Get.php
index 2cfc2942c6509376b32f8343ae8e309a4feaa5ee..5892efb6362174b4faffd6fa0aa06ae96187c38f 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using event get API.
- *
+ * Test Generated example demonstrating the Event.get API.
  *
  * @return array
  *   API result array
@@ -13,7 +12,7 @@ function event_get_example() {
   );
 
   try{
-    $result = civicrm_api3('event', 'get', $params);
+    $result = civicrm_api3('Event', 'get', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -76,11 +75,10 @@ function event_get_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testGetEventByEventTitle
-* and can be found in
+* The test that created it is called "testGetEventByEventTitle"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php
 *
 * You can see the outcome of the API tests at