You are here

function UserImportWebTestCase::settingsFileSelect in User Import 7

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

Select CSV file (the included example file)

1 call to UserImportWebTestCase::settingsFileSelect()
UserImportBasicsTestCase::testCreateImport in ./user_import.test
User with right permissions creates import (with new settings)

File

./user_import.test, line 13

Class

UserImportWebTestCase
User Import module base test class.

Code

function settingsFileSelect() {
  $edit = array(
    'file_ftp' => 1,
  );
  $this
    ->drupalPost('admin/people/user_import/add', $edit, t('Next'));

  /* Check file was selected */
  $this
    ->assertText(t('Use Different CSV File'), '[assert] File was selected');
}