6 function email_replace_example(){
12 'location_type_id' => 18,
13 'email' => '1-1@example.com',
17 'location_type_id' => 18,
18 'email' => '1-2@example.com',
22 'location_type_id' => 18,
23 'email' => '1-3@example.com',
27 'location_type_id' => 19,
28 'email' => '2-1@example.com',
32 'location_type_id' => 19,
33 'email' => '2-2@example.com',
39 $result = civicrm_api( 'email','replace',$params );
45 * Function returns array of result expected from previous function
47 function email_replace_expectedresult(){
49 $expectedResult = array(
57 'location_type_id' => '18',
58 'email' => '1-1@example.com',
65 'signature_text' => '',
66 'signature_html' => '',
71 'location_type_id' => '18',
72 'email' => '1-2@example.com',
79 'signature_text' => '',
80 'signature_html' => '',
85 'location_type_id' => '18',
86 'email' => '1-3@example.com',
93 'signature_text' => '',
94 'signature_html' => '',
99 'location_type_id' => '19',
100 'email' => '2-1@example.com',
107 'signature_text' => '',
108 'signature_html' => '',
113 'location_type_id' => '19',
114 'email' => '2-2@example.com',
121 'signature_text' => '',
122 'signature_html' => '',
127 return $expectedResult ;
132 * This example has been generated from the API test suite. The test that created it is called
134 * testReplaceEmail and can be found in
135 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/EmailTest.php
137 * You can see the outcome of the API tests at
138 * http://tests.dev.civicrm.org/trunk/results-api_v3
140 * To Learn about the API read
141 * http://book.civicrm.org/developer/current/techniques/api/
143 * and review the wiki at
144 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
146 * Read more about testing here
147 * http://wiki.civicrm.org/confluence/display/CRM/Testing
149 * API Standards documentation:
150 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards