function UserImportProfileTestCase::testCreateImport in User Import 6.4
Same name and namespace in other branches
- 6.2 user_import.test \UserImportProfileTestCase::testCreateImport()
User with right permissions creates import (with new settings)
- test import of user data into Profile module
File
- ./
user_import.test, line 449
Class
- UserImportProfileTestCase
- Test import of user data into Profile module
Code
function testCreateImport() {
$this
->drupalLogin($this->admin_user);
$this
->profileFieldsCreate();
// Prepare a user to do testing
$this
->drupalGet('logout');
// log out first
$this
->drupalLogin($this->user_importer);
// Select CSV file (the included example file)
$this
->settingsFileSelect();
// import settings
$this
->importID($this
->getUrl());
// store import ID for later
$settings = array();
$this
->settingsEmailMatch($settings);
$this
->settingsProfileMatch($settings);
$this
->settingsIgnoreFirstLine($settings);
$this
->drupalPost($this
->getUrl(), $settings, 'Import');
// check if users have been imported
$this
->checkProfileExist();
}