Merge pull request #9765 from monishdeb/CRM-19938
[civicrm-core.git] / api / v3 / examples / Contribution / ContributionCreateWithSoftCreditDefaults.php
index 51f2acb6d37856189463f72d1ab3755984d13509..8d7126cb897de7c0f5218e7f9f9b630623beca52 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using contribution create API.
+ * Test Generated example demonstrating the Contribution.create API.
  *
  * Demonstrates creating contribution with Soft Credit defaults for amount and type.
  *
@@ -22,7 +22,7 @@ function contribution_create_example() {
   );
 
   try{
-    $result = civicrm_api3('contribution', 'create', $params);
+    $result = civicrm_api3('Contribution', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -90,11 +90,10 @@ function contribution_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateContributionWithSoftCreditDefaults
-* and can be found in
+* The test that created it is called "testCreateContributionWithSoftCreditDefaults"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php
 *
 * You can see the outcome of the API tests at