1 user.test | UserLoginTestCase::testLoginWithAnonSession() |
Test logging in when an anon session already exists.
File
- core/
modules/ user/ tests/ user.test, line 583 - Tests for user.module.
Class
- UserLoginTestCase
- Functional tests for user logins, including rate limiting of login attempts.
Code
function testLoginWithAnonSession() {
// Visit the callback to generate a session for this anon user.
$this->backdropGet('user_session_test_anon_session');
// Now login.
$account = $this->backdropCreateUser(array());
$this->backdropLogin($account);
}