You are here

public function UIFTestCaseSimple::testUIFImportUnsuccessful in User Import Framework 7

File

./uif.test, line 59
UIF test code.

Class

UIFTestCaseSimple
Simple import testing.

Code

public function testUIFImportUnsuccessful() {
  $this
    ->drupalLogin($this->import_user);
  $edit = array();
  $edit['files[user_upload]'] = DRUPAL_ROOT . '/' . drupal_get_path('module', 'uif') . '/test_data/test_2_fails_no_email.csv';
  $this
    ->drupalPost('admin/people/uif', $edit, t('Next'));
  $this
    ->assertText(t('Missing or invalid email address', array()));
}