You are here

function UserImportTest::importID in User Import 8

Same name and namespace in other branches
  1. 5 tests/user_import.test \UserImportTest::importID()

Store import ID

  • set on import settings page, retrieve on later tasks
5 calls to UserImportTest::importID()
UserImportBasics::testCreateImport in tests/user_import_basics.test
User with right permissions creates import (with new settings)
UserImportNodeprofile::tearDown in tests/user_import_nodeprofile.test
SimpleTest core method: code run after each and every test method.
UserImportNodeprofile::testCreateImport in tests/user_import_nodeprofile.test
User with right permissions creates import (with new settings)
UserImportProfile::testCreateImport in tests/user_import_profile.test
User with right permissions creates import (with new settings)
UserImportTest::tearDown in tests/user_import.test
SimpleTest core method: code run after each and every test method.

File

tests/user_import.test, line 119

Class

UserImportTest
Create Invoice node test for Invoices module.

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;
}