function UserImportProfile::settingsProfileMatch in User Import 5
Same name and namespace in other branches
- 8 tests/user_import_profile.test \UserImportProfile::settingsProfileMatch()
* Match CSV columns to Profile fields
1 call to UserImportProfile::settingsProfileMatch()
- UserImportProfile::testCreateImport in tests/
user_import_profile.test - * User with right permissions creates import (with new settings) * - test import of user data into Profile module
File
- tests/
user_import_profile.test, line 87
Class
- UserImportProfile
- Test import of user data into Profile module
Code
function settingsProfileMatch(&$edit) {
$edit['field_match[0][field_match]'] = 'profile-1';
// First Name
$edit['field_match[1][field_match]'] = 'profile-2';
// Last Name
$edit['field_match[10][field_match]'] = 'profile-3';
// CV
$edit['field_match[7][field_match]'] = 'profile-4';
// Contact Permision
$edit['field_match[8][field_match]'] = 'profile-5';
// Contact Preference
$edit['field_match[9][field_match]'] = 'profile-6';
// Interests
$edit['field_match[6][field_match]'] = 'profile-7';
// Blog
$edit['field_match[11][field_match]'] = 'profile-8';
// Birthday
}