projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-15988 - Update generated examples
[civicrm-core.git]
/
api
/
v3
/
examples
/
UFField
/
Create.php
diff --git
a/api/v3/examples/UFField/Create.php
b/api/v3/examples/UFField/Create.php
index 4574229cfeeed0573a573d02b4525ee547bf9b00..ec39ee0013833f21a10c5ba5d5be1f6cec1efdd0 100644
(file)
--- a/
api/v3/examples/UFField/Create.php
+++ b/
api/v3/examples/UFField/Create.php
@@
-1,13
+1,6
@@
<?php
/**
<?php
/**
- * @file
- * Test Generated API Example.
- * See bottom of this file for more detail.
- */
-
-/**
- * Test Generated example of using uf_field create API.
- *
+ * Test Generated example demonstrating the UFField.create API.
*
* @return array
* API result array
*
* @return array
* API result array
@@
-27,7
+20,7
@@
function uf_field_create_example() {
);
try{
);
try{
- $result = civicrm_api3('
uf_f
ield', 'create', $params);
+ $result = civicrm_api3('
UFF
ield', 'create', $params);
}
catch (CiviCRM_API3_Exception $e) {
// Handle error here.
}
catch (CiviCRM_API3_Exception $e) {
// Handle error here.
@@
-85,11
+78,10
@@
function uf_field_create_expectedresult() {
return $expectedResult;
}
return $expectedResult;
}
-/*
*
+/*
* This example has been generated from the API test suite.
* This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateUFField
-* and can be found in
+* The test that created it is called "testCreateUFField"
+* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php
*
* You can see the outcome of the API tests at
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php
*
* You can see the outcome of the API tests at
@@
-99,7
+91,7
@@
function uf_field_create_expectedresult() {
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
-* http://MYSITE.ORG/path/to/civicrm/api
/explorer
+* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing