You are here

function UserImportWebTestCase::importID in User Import 6.2

Same name and namespace in other branches
  1. 8 user_import.test \UserImportWebTestCase::importID()
  2. 6.4 user_import.test \UserImportWebTestCase::importID()
  3. 7.3 user_import.test \UserImportWebTestCase::importID()
  4. 7 user_import.test \UserImportWebTestCase::importID()
  5. 7.2 user_import.test \UserImportWebTestCase::importID()

Store import ID

  • set on import settings page, retrieve on later tasks
5 calls to UserImportWebTestCase::importID()
UserImportBasicsTestCase::testCreateImport in ./user_import.test
User with right permissions creates import (with new settings)
UserImportNodeprofileTestCase::tearDown in ./user_import.test
SimpleTest core method: code run after each and every test method.
UserImportNodeprofileTestCase::testCreateImport in ./user_import.test
User with right permissions creates import (with new settings)
UserImportProfileTestCase::testCreateImport in ./user_import.test
User with right permissions creates import (with new settings)
UserImportWebTestCase::tearDown in ./user_import.test
SimpleTest core method: code run after each and every test method.

File

./user_import.test, line 100

Class

UserImportWebTestCase
User Import module base test class.

Code

function importID($url = NULL) {
  static $import_id = 0;
  if (empty($import_id) && !empty($url)) {
    $args = explode('/', $url);
    $import_id = $args[7];
  }
  return $import_id;
}