6 function domain_create_example(){
8 'name' => 'A-team domain',
9 'description' => 'domain of chaos',
11 'domain_version' => '4.2',
15 $result = civicrm_api( 'domain','create',$params );
21 * Function returns array of result expected from previous function
23 function domain_create_expectedresult(){
25 $expectedResult = array(
33 'name' => 'A-team domain',
34 'description' => 'domain of chaos',
35 'config_backend' => '',
39 'locale_custom_strings' => '',
44 return $expectedResult ;
49 * This example has been generated from the API test suite. The test that created it is called
51 * testCreate and can be found in
52 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/DomainTest.php
54 * You can see the outcome of the API tests at
55 * http://tests.dev.civicrm.org/trunk/results-api_v3
57 * To Learn about the API read
58 * http://book.civicrm.org/developer/current/techniques/api/
60 * and review the wiki at
61 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
63 * Read more about testing here
64 * http://wiki.civicrm.org/confluence/display/CRM/Testing
66 * API Standards documentation:
67 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards