user_import_basics.test in User Import 5
File
tests/user_import_basics.test
View source
<?php
class UserImportBasics extends UserImportTest {
function get_info() {
return array(
'name' => t('Import Users (Basics)'),
'desc' => t('Import users from a CSV file, test basic functions'),
'group' => t('User Import'),
);
}
function testCreateImport() {
$this
->drupalLoginUser($this->user_importer);
$this
->settingsFileSelect();
$this
->importID($this
->getUrl());
$setting_edit = array();
$this
->settingsEmailMatch($settings);
$this
->settingsIgnoreFirstLine($settings);
$this
->drupalPostRequest($this
->getUrl(), $settings, 'Import');
$this
->checkAccountsExist(TRUE);
}
}