function UserImportBasics::testCreateImport in User Import 8
Same name and namespace in other branches
- 5 tests/user_import_basics.test \UserImportBasics::testCreateImport()
User with right permissions creates import (with new settings)
- test core functions
File
- tests/
user_import_basics.test, line 20
Class
- UserImportBasics
- Create Invoice node test for Invoices module.
Code
function testCreateImport() {
// Prepare a user to do testing
$this
->drupalLoginUser($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
->drupalPostRequest($this
->getUrl(), $settings, 'Import');
// check if users have been imported
$this
->checkAccountsExist(TRUE);
}