You are here

public function UIFPlusTestCase::testUIFPlusBasic in User Import Framework Plus 7

Test the selection of a value delimiter on the UIF form, added by UIF Plus. When UIF Plus imports data for the extra field, the value_delimiter is stored in a Drupal persistent variable

File

./uif_plus.test, line 31
Test cases for User Import Framework Plus module

Class

UIFPlusTestCase
@file

Code

public function testUIFPlusBasic() {
  $this
    ->drupalLogin($this->import_user);
  $edit = array();
  $edit['files[user_upload]'] = DRUPAL_ROOT . '/' . drupal_get_path('module', 'uif_plus') . '/data/test_var.csv';
  $this
    ->drupalPost('admin/people/uif', $edit, t('Next'));
  $this
    ->assertText(t('Preview these records and when ready to import click Import users', array()));
  $this
    ->drupalPost(NULL, array(), t('Import users'));
  $this
    ->assertText(t('User import complete', array()));
}