protected function CivicrmEntityTestBase::sampleContactData in CiviCRM Entity 8.3
Provides sample contacts data.
Return value
array The events data.
1 call to CivicrmEntityTestBase::sampleContactData()
- CivicrmEntityTestBase::mockCiviCrmApi in tests/
src/ Kernel/ CivicrmEntityTestBase.php - Mocks the CiviCRM API.
File
- tests/
src/ Kernel/ CivicrmEntityTestBase.php, line 1619
Class
- CivicrmEntityTestBase
- Test base to aid in mocking the CiviCRM API.
Namespace
Drupal\Tests\civicrm_entity\KernelCode
protected function sampleContactData() {
return [
0 => [
'contact_id' => '10',
'contact_type' => 'Individual',
'contact_sub_type' => '',
'sort_name' => 'Neal, Emma',
'display_name' => 'Emma Neal',
'do_not_email' => '0',
'do_not_phone' => '0',
'do_not_mail' => '0',
'do_not_sms' => '0',
'do_not_trade' => '0',
'is_opt_out' => '0',
'legal_identifier' => '',
'external_identifier' => '',
'nick_name' => '',
'legal_name' => '',
'image_URL' => '',
'preferred_communication_method' => [
0 => '5',
],
'preferred_language' => '',
'preferred_mail_format' => 'Both',
'first_name' => 'Emma',
'middle_name' => '',
'last_name' => 'Neal',
'prefix_id' => '',
'suffix_id' => '',
'formal_title' => '',
'communication_style_id' => '',
'job_title' => '',
'gender_id' => '2',
'birth_date' => '1982-06-28',
'is_deceased' => '0',
'deceased_date' => '',
'household_name' => '',
'organization_name' => '',
'sic_code' => '',
'contact_is_deleted' => '0',
'current_employer' => '',
'address_id' => '36',
'street_address' => '2262 Frances Ct',
'supplemental_address_1' => '',
'supplemental_address_2' => '',
'supplemental_address_3' => '',
'city' => 'Memphis',
'postal_code_suffix' => '',
'postal_code' => '68042',
'geo_code_1' => '41.095604',
'geo_code_2' => '-96.43168',
'state_province_id' => '1026',
'country_id' => '1228',
'phone_id' => '62',
'phone_type_id' => '1',
'phone' => '(555) 555-555',
'email_id' => '62',
'email' => 'emma@example.com',
'on_hold' => '0',
'im_id' => '',
'provider_id' => '',
'im' => '',
'worldregion_id' => '2',
'world_region' => 'America South, Central, North and Caribbean',
'languages' => '',
'individual_prefix' => '',
'individual_suffix' => '',
'communication_style' => '',
'gender' => 'Male',
'state_province_name' => 'Nebraska',
'state_province' => 'NE',
'country' => 'United States',
'id' => '10',
],
];
}