You are here

function UserImportBasicsTestCase::testCreateImport in User Import 7.2

Same name and namespace in other branches
  1. 8 user_import.test \UserImportBasicsTestCase::testCreateImport()
  2. 6.4 user_import.test \UserImportBasicsTestCase::testCreateImport()
  3. 6.2 user_import.test \UserImportBasicsTestCase::testCreateImport()
  4. 7.3 user_import.test \UserImportBasicsTestCase::testCreateImport()
  5. 7 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);
}