function UserImportNodeprofileTestCase::testCreateImport in User Import 6.2
Same name and namespace in other branches
- 6.4 user_import.test \UserImportNodeprofileTestCase::testCreateImport()
User with right permissions creates import (with new settings)
- test import of user data into Nodeprofile module
File
- ./
user_import.test, line 203
Class
- UserImportNodeprofileTestCase
- Test import of user data into Profile module
Code
function testCreateImport() {
$this
->drupalLogin($this->admin_user);
// $this->drupalGet('admin/build/modules');
// file_put_contents('output.html', $this->drupalGetContent());
$this
->nodeprofileConfiguration();
// 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
->settingsNodeprofileMatch($settings);
$this
->settingsIgnoreFirstLine($settings);
$this
->drupalPost($this
->getUrl(), $settings, 'Import');
// check if users have been imported
$this
->checkNodeprofileExist();
}