function UserImportWebTestCase::importID in User Import 8
Same name and namespace in other branches
- 6.4 user_import.test \UserImportWebTestCase::importID()
- 6.2 user_import.test \UserImportWebTestCase::importID()
- 7.3 user_import.test \UserImportWebTestCase::importID()
- 7 user_import.test \UserImportWebTestCase::importID()
- 7.2 user_import.test \UserImportWebTestCase::importID()
Store import ID
- set on import settings page, retrieve on later tasks
2 calls to UserImportWebTestCase::importID()
- UserImportBasicsTestCase::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 95
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;
}