Ian province abbreviation patch - issue 724
[civicrm-core.git] / api / v3 / examples / Address / Create.php
index bf50db7a339433c592f742d15e013b0e893800a9..222a81ca509b8af20c640405374a867e6f1736f6 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using address create API.
- *
+ * Test Generated example demonstrating the Address.create API.
  *
  * @return array
  *   API result array
@@ -20,7 +19,7 @@ function address_create_example() {
   );
 
   try{
-    $result = civicrm_api3('address', 'create', $params);
+    $result = civicrm_api3('Address', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -71,11 +70,10 @@ function address_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateAddress
-* and can be found in
+* The test that created it is called "testCreateAddress"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php
 *
 * You can see the outcome of the API tests at