You are here

public function FeedsCSVtoUsersTest::testInvalidUsername in Feeds 7.2

Tests if an user with an invalid name is not imported.

File

tests/feeds_processor_user.test, line 1007
Tests for plugins/FeedsUserProcessor.inc.

Class

FeedsCSVtoUsersTest
Test aggregating a feed as data records.

Code

public function testInvalidUsername() {

  // Import a file that contains the mail address of user 1.
  $this
    ->importFile('user_import', $this
    ->absolutePath() . '/tests/feeds/user_validation/invalid-username.csv');
  $this
    ->assertText('Failed importing 1 user');
  $this
    ->assertText('The username contains an illegal character.');
}