function UserImportNodeprofileTestCase::settingsNodeprofileMatch in User Import 6.2
Same name and namespace in other branches
- 6.4 user_import.test \UserImportNodeprofileTestCase::settingsNodeprofileMatch()
Match CSV columns to Profile fields
1 call to UserImportNodeprofileTestCase::settingsNodeprofileMatch()
- UserImportNodeprofileTestCase::testCreateImport in ./
user_import.test - User with right permissions creates import (with new settings)
File
- ./
user_import.test, line 312
Class
- UserImportNodeprofileTestCase
- Test import of user data into Profile module
Code
function settingsNodeprofileMatch(&$edit) {
$edit['field_match[0][field_match]'] = 'content_profile-identity cck:field_first_name:value';
// First Name
$edit['field_match[1][field_match]'] = 'content_profile-identity cck:field_last_name:value';
// Last Name
$edit['field_match[10][field_match]'] = 'content_profile-biography cck:field_cv:value';
// CV
$edit['field_match[7][field_match]'] = 'content_profile-contact_details cck:field_can_be_contacted:value';
// Contact Permision
$edit['field_match[8][field_match]'] = 'content_profile-contact_details cck:field_contact_preference:value';
// Contact Preference
// $edit['field_match[9][field_match]'] = 'taxonomy-' . $this->vocabulary_id; // Interests
$edit['field_match[6][field_match]'] = 'content_profile-biography cck:field_blog:url';
// Blog
$edit['field_match[11][field_match]'] = 'content_profile-biography cck:field_birthday:value';
// Birthday
}