CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Contact / GetOptions.php
similarity index 86%
rename from api/v3/examples/Contact/Getoptions.php
rename to api/v3/examples/Contact/GetOptions.php
index 93ddaa1446345d2aa01060ea955d3ed6d648392c..f485f5a400f61302587bf19637f59b7678608646 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using contact getoptions API.
+ * Test Generated example demonstrating the Contact.getoptions API.
  *
  * Demonstrates retrieving options for a custom field.
  *
@@ -13,7 +13,7 @@ function contact_getoptions_example() {
   );
 
   try{
-    $result = civicrm_api3('contact', 'getoptions', $params);
+    $result = civicrm_api3('Contact', 'getoptions', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -51,11 +51,10 @@ function contact_getoptions_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCustomFieldCreateWithOptionValues
-* and can be found in
+* The test that created it is called "testCustomFieldCreateWithOptionValues"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php
 *
 * You can see the outcome of the API tests at