updated core to 7.72
This commit is contained in:
@@ -5,7 +5,7 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2019-04-17
|
||||
version = "7.66"
|
||||
; Information added by Drupal.org packaging script on 2020-06-17
|
||||
version = "7.72"
|
||||
project = "drupal"
|
||||
datestamp = "1555533576"
|
||||
datestamp = "1592419104"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
name = "User module session tests"
|
||||
description = "Support module for user session testing."
|
||||
package = Testing
|
||||
version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2020-06-17
|
||||
version = "7.72"
|
||||
project = "drupal"
|
||||
datestamp = "1592419104"
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Dummy module implementing a page callback to create an anon session.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_menu().
|
||||
*/
|
||||
function user_session_test_menu() {
|
||||
$items = array();
|
||||
$items['user_session_test_anon_session'] = array(
|
||||
'page callback' => 'user_session_test_anon_session',
|
||||
'access callback' => TRUE,
|
||||
);
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Page callback.
|
||||
*
|
||||
* Creates an anonymous user session.
|
||||
*/
|
||||
function user_session_test_anon_session() {
|
||||
$data = 'This dummy data will be stored in a user session.';
|
||||
$_SESSION[__FUNCTION__] = $data;
|
||||
return $data;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ required = TRUE
|
||||
configure = admin/config/people
|
||||
stylesheets[all][] = user.css
|
||||
|
||||
; Information added by Drupal.org packaging script on 2019-04-17
|
||||
version = "7.66"
|
||||
; Information added by Drupal.org packaging script on 2020-06-17
|
||||
version = "7.72"
|
||||
project = "drupal"
|
||||
datestamp = "1555533576"
|
||||
datestamp = "1592419104"
|
||||
|
||||
@@ -321,6 +321,10 @@ class UserLoginTestCase extends DrupalWebTestCase {
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
parent::setUp('user_session_test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the global login flood control.
|
||||
*/
|
||||
@@ -421,6 +425,17 @@ class UserLoginTestCase extends DrupalWebTestCase {
|
||||
$this->assertIdentical(_password_get_count_log2($account->pass), DRUPAL_HASH_COUNT + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test logging in when an anon session already exists.
|
||||
*/
|
||||
function testLoginWithAnonSession() {
|
||||
// Visit the callback to generate a session for this anon user.
|
||||
$this->drupalGet('user_session_test_anon_session');
|
||||
// Now login.
|
||||
$account = $this->drupalCreateUser(array());
|
||||
$this->drupalLogin($account);
|
||||
}
|
||||
|
||||
/**
|
||||
* Make an unsuccessful login attempt.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user