CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / PriceFieldValue / Create.php
index 5f30c992aaf3cec4541dc3a436bcda6b54f4b734..567c0b9d06d6f815b5faa1bb228bab6df82c8909 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using price_field_value create API.
- *
+ * Test Generated example demonstrating the PriceFieldValue.create API.
  *
  * @return array
  *   API result array
@@ -19,7 +18,7 @@ function price_field_value_create_example() {
   );
 
   try{
-    $result = civicrm_api3('price_field_value', 'create', $params);
+    $result = civicrm_api3('PriceFieldValue', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -74,11 +73,10 @@ function price_field_value_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreatePriceFieldValuewithMultipleTerms
-* and can be found in
+* The test that created it is called "testCreatePriceFieldValuewithMultipleTerms"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php
 *
 * You can see the outcome of the API tests at