CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / LineItem / Create.php
index 497c58e3e7b608433c3141e9a89c6d58d01425f2..42085b693cbb7c54fc2981e32f62ebe442445041 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using line_item create API.
+ * Test Generated example demonstrating the LineItem.create API.
  *
  * @return array
  *   API result array
@@ -18,7 +18,7 @@ function line_item_create_example() {
   );
 
   try{
-    $result = civicrm_api3('line_item', 'create', $params);
+    $result = civicrm_api3('LineItem', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -71,11 +71,10 @@ function line_item_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateLineItem
-* and can be found in
+* The test that created it is called "testCreateLineItem"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php
 *
 * You can see the outcome of the API tests at