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
/
Activity
/
Create.php
diff --git
a/api/v3/examples/Activity/Create.php
b/api/v3/examples/Activity/Create.php
index c113f60c75a3bf1786fd3a3f3d958074e3a11812..ecb37836bb18a8ccd9af801e52dfff49dae27931 100644
(file)
--- a/
api/v3/examples/Activity/Create.php
+++ b/
api/v3/examples/Activity/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 activity create API.
- *
+ * Test Generated example demonstrating the Activity.create API.
*
* @return array
* API result array
*
* @return array
* API result array
@@
-27,7
+20,7
@@
function activity_create_example() {
);
try{
);
try{
- $result = civicrm_api3('
a
ctivity', 'create', $params);
+ $result = civicrm_api3('
A
ctivity', 'create', $params);
}
catch (CiviCRM_API3_Exception $e) {
// Handle error here.
}
catch (CiviCRM_API3_Exception $e) {
// Handle error here.
@@
-90,11
+83,10
@@
function activity_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
-* testActivityCreateCustom
-* and can be found in
+* The test that created it is called "testActivityCreateCustom"
+* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
@@
-104,7
+96,7
@@
function activity_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