function UserImportBasicsTestCase::testCreateImport in User Import 8
Same name and namespace in other branches
- 6.4 user_import.test \UserImportBasicsTestCase::testCreateImport()
- 6.2 user_import.test \UserImportBasicsTestCase::testCreateImport()
- 7.3 user_import.test \UserImportBasicsTestCase::testCreateImport()
- 7 user_import.test \UserImportBasicsTestCase::testCreateImport()
- 7.2 user_import.test \UserImportBasicsTestCase::testCreateImport()
User with right permissions creates import (with new settings)
- test core functions
File
- ./
user_import.test, line 154
Class
- UserImportBasicsTestCase
- User Import module base test class.
Code
function testCreateImport() {
// Prepare a user to do testing
$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
$setting_edit = array();
$this
->settingsEmailMatch($settings);
$this
->settingsIgnoreFirstLine($settings);
$this
->drupalPost($this
->getUrl(), $settings, 'Import');
// check if users have been imported
$this
->checkAccountsExist(TRUE);
}