Revision 27e02aed
Added by Assos Assos over 4 years ago
drupal7/modules/user/user.test | ||
---|---|---|
321 | 321 |
); |
322 | 322 |
} |
323 | 323 |
|
324 |
function setUp() { |
|
325 |
parent::setUp('user_session_test'); |
|
326 |
} |
|
327 |
|
|
324 | 328 |
/** |
325 | 329 |
* Test the global login flood control. |
326 | 330 |
*/ |
... | ... | |
421 | 425 |
$this->assertIdentical(_password_get_count_log2($account->pass), DRUPAL_HASH_COUNT + 1); |
422 | 426 |
} |
423 | 427 |
|
428 |
/** |
|
429 |
* Test logging in when an anon session already exists. |
|
430 |
*/ |
|
431 |
function testLoginWithAnonSession() { |
|
432 |
// Visit the callback to generate a session for this anon user. |
|
433 |
$this->drupalGet('user_session_test_anon_session'); |
|
434 |
// Now login. |
|
435 |
$account = $this->drupalCreateUser(array()); |
|
436 |
$this->drupalLogin($account); |
|
437 |
} |
|
438 |
|
|
424 | 439 |
/** |
425 | 440 |
* Make an unsuccessful login attempt. |
426 | 441 |
* |
Also available in: Unified diff
-a