CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Tag / GetList.php
index f0f4f28a29c7042509e5ad79274699e5e36f21c7..9dd6c6ebc83eff00cc36784199a53619c351e90a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using tag getlist API.
+ * Test Generated example demonstrating the Tag.getlist API.
  *
  * Demonstrates use of api.getlist for autocomplete and quicksearch applications.
  *
@@ -16,7 +16,7 @@ function tag_getlist_example() {
   );
 
   try{
-    $result = civicrm_api3('tag', 'getlist', $params);
+    $result = civicrm_api3('Tag', 'getlist', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -65,11 +65,10 @@ function tag_getlist_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testTagGetList
-* and can be found in
+* The test that created it is called "testTagGetList"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php
 *
 * You can see the outcome of the API tests at