function UserImportProfileTestCase::settingsProfileMatch in User Import 6.2
Same name and namespace in other branches
- 6.4 user_import.test \UserImportProfileTestCase::settingsProfileMatch()
Match CSV columns to Profile fields
1 call to UserImportProfileTestCase::settingsProfileMatch()
- UserImportProfileTestCase::testCreateImport in ./
user_import.test - User with right permissions creates import (with new settings)
File
- ./
user_import.test, line 514
Class
- UserImportProfileTestCase
- 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
}