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