CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / ContributionPage / Submit.php
index 5dab053aadbd1c62477717606240389e27e000bd..aa5605270316a256be91287c85971e083115a95a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using contribution_page Submit API.
+ * Test Generated example demonstrating the ContributionPage.submit API.
  *
  * submit contribution page
  *
@@ -33,7 +33,7 @@ function contribution_page_submit_example() {
   );
 
   try{
-    $result = civicrm_api3('contribution_page', 'Submit', $params);
+    $result = civicrm_api3('ContributionPage', 'submit', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -68,11 +68,10 @@ function contribution_page_submit_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testSubmitMembershipPriceSetPaymentPaymentProcessorRecurDelayed
-* and can be found in
+* The test that created it is called "testSubmitMembershipPriceSetPaymentPaymentProcessorRecurDelayed"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php
 *
 * You can see the outcome of the API tests at