updated core to 7.72

This commit is contained in:
2020-06-23 12:35:08 +02:00
parent 22d0da3413
commit d58e084fe3
208 changed files with 3399 additions and 593 deletions
+3 -3
View File
@@ -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"
+11
View File
@@ -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;
}
+3 -3
View File
@@ -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"
+15
View File
@@ -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.
*