1 user.test UserLoginTestCase::testAccountNotFound()

Attempt to login with an unregistered username.

File

core/modules/user/tests/user.test, line 560
Tests for user.module.

Class

UserLoginTestCase
Functional tests for user logins, including rate limiting of login attempts.

Code

function testAccountNotFound() {
  $edit = array(
    'name' => $this->randomName(8),
    'pass' => $this->randomName(8),
  );
  $this->backdropPost('user', $edit, t('Log in'));
  $this->assertText(t('Sorry, unrecognized username.'));
}