function UserImportTest::settingsFileSelect in User Import 8
Same name and namespace in other branches
- 5 tests/user_import.test \UserImportTest::settingsFileSelect()
Select CSV file (the included example file)
3 calls to UserImportTest::settingsFileSelect()
- UserImportBasics::testCreateImport in tests/
user_import_basics.test - User with right permissions creates import (with new settings)
- 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)
File
- tests/
user_import.test, line 37
Class
- UserImportTest
- Create Invoice node test for Invoices module.
Code
function settingsFileSelect() {
$edit = array(
'file_ftp' => 1,
);
$this
->drupalPostRequest('admin/user/user_import/add', $edit, 'Next');
/* Check file was selected */
$this
->assertText(t('Use Different CSV File'), '[assert] File was selected');
}