6 function profile_apply_example(){
11 'first_name' => 'abc2',
12 'last_name' => 'xyz2',
13 'email-Primary' => 'abc2.xyz2@gmail.com',
14 'phone-1-1' => '022 321 826',
15 'country-1' => '1013',
16 'state_province-1' => '1000',
19 $result = civicrm_api( 'profile','apply',$params );
25 * Function returns array of result expected from previous function
27 function profile_apply_expectedresult(){
29 $expectedResult = array(
34 'contact_type' => 'Individual',
35 'contact_sub_type' => '',
39 'first_name' => 'abc2',
40 'last_name' => 'xyz2',
43 'location_type_id' => '1',
45 'email' => 'abc2.xyz2@gmail.com',
50 'location_type_id' => '1',
52 'phone_type_id' => '1',
53 'phone' => '022 321 826',
58 'location_type_id' => '1',
60 'country_id' => '1013',
61 'state_province_id' => '1000',
67 return $expectedResult ;
72 * This example has been generated from the API test suite. The test that created it is called
74 * testProfileApply and can be found in
75 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ProfileTest.php
77 * You can see the outcome of the API tests at
78 * http://tests.dev.civicrm.org/trunk/results-api_v3
80 * To Learn about the API read
81 * http://book.civicrm.org/developer/current/techniques/api/
83 * and review the wiki at
84 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
86 * Read more about testing here
87 * http://wiki.civicrm.org/confluence/display/CRM/Testing
89 * API Standards documentation:
90 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards