mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-09-06 09:01:23 +00:00
Update Drupal 7 dependencies
This commit is contained in:
parent
7d902ba1ef
commit
13df912654
391 changed files with 2900 additions and 1502 deletions
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -618,4 +618,16 @@ class AJAXElementValidation extends AJAXTestCase {
|
|||
$this->assertNoText(t('Error message'), "No error message in resultant JSON");
|
||||
$this->assertText('ajax_forms_test_validation_form_callback invoked', 'The correct callback was invoked');
|
||||
}
|
||||
|
||||
/**
|
||||
* Try to open default Ajax callback without passing required data.
|
||||
*/
|
||||
function testAJAXPathWithoutData() {
|
||||
$this->drupalGet('system/ajax');
|
||||
$query_parameters = array(
|
||||
':type' => 'php',
|
||||
':severity' => WATCHDOG_WARNING,
|
||||
);
|
||||
$this->assertEqual(db_query('SELECT COUNT(*) FROM {watchdog} WHERE type = :type AND severity = :severity', $query_parameters)->fetchField(), 0, 'No warning message appears in the logs.');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ package = Testing
|
|||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ package = Testing
|
|||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ package = Testing
|
|||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -963,3 +963,62 @@ class BootstrapDrupalCacheArrayTestCase extends DrupalWebTestCase {
|
|||
$this->assertTrue(is_string($payload2) && (strpos($payload2, 'phpinfo') !== FALSE), 'DrupalCacheArray persisted data to cache_form.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the trusted HTTP host configuration.
|
||||
*/
|
||||
class BootstrapTrustedHostsTestCase extends DrupalUnitTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Trusted HTTP host test',
|
||||
'description' => 'Tests the trusted_host_patterns configuration.',
|
||||
'group' => 'Bootstrap',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests hostname validation.
|
||||
*
|
||||
* @see drupal_check_trusted_hosts()
|
||||
*/
|
||||
function testTrustedHosts() {
|
||||
$trusted_host_patterns = array(
|
||||
'^example\.com$',
|
||||
'^.+\.example\.com$',
|
||||
'^example\.org',
|
||||
'^.+\.example\.org',
|
||||
);
|
||||
|
||||
foreach ($this->providerTestTrustedHosts() as $data) {
|
||||
$test = array_combine(array('host', 'message', 'expected'), $data);
|
||||
$valid_host = drupal_check_trusted_hosts($test['host'], $trusted_host_patterns);
|
||||
$this->assertEqual($test['expected'], $valid_host, $test['message']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides test data for testTrustedHosts().
|
||||
*/
|
||||
public function providerTestTrustedHosts() {
|
||||
$data = array();
|
||||
|
||||
// Tests canonical URL.
|
||||
$data[] = array('www.example.com', 'canonical URL is trusted', TRUE);
|
||||
|
||||
// Tests missing hostname for HTTP/1.0 compatability where the Host
|
||||
// header is optional.
|
||||
$data[] = array(NULL, 'empty Host is valid', TRUE);
|
||||
|
||||
// Tests the additional patterns from the settings.
|
||||
$data[] = array('example.com', 'host from settings is trusted', TRUE);
|
||||
$data[] = array('subdomain.example.com', 'host from settings is trusted', TRUE);
|
||||
$data[] = array('www.example.org', 'host from settings is trusted', TRUE);
|
||||
$data[] = array('example.org', 'host from settings is trusted', TRUE);
|
||||
|
||||
// Tests mismatch.
|
||||
$data[] = array('www.blackhat.com', 'unspecified host is untrusted', FALSE);
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -303,20 +303,6 @@ class CacheClearCase extends CacheTestCase {
|
|||
|
||||
$this->assertTrue($this->checkCacheExists('test_cid_clear3', $this->default_value),
|
||||
'Entry was not cleared from the cache');
|
||||
|
||||
// Set the cache clear threshold to 2 to confirm that the full bin is cleared
|
||||
// when the threshold is exceeded.
|
||||
variable_set('cache_clear_threshold', 2);
|
||||
cache_set('test_cid_clear1', $this->default_value, $this->default_bin);
|
||||
cache_set('test_cid_clear2', $this->default_value, $this->default_bin);
|
||||
$this->assertTrue($this->checkCacheExists('test_cid_clear1', $this->default_value)
|
||||
&& $this->checkCacheExists('test_cid_clear2', $this->default_value),
|
||||
'Two cache entries were created.');
|
||||
cache_clear_all(array('test_cid_clear1', 'test_cid_clear2', 'test_cid_clear3'), $this->default_bin);
|
||||
$this->assertFalse($this->checkCacheExists('test_cid_clear1', $this->default_value)
|
||||
|| $this->checkCacheExists('test_cid_clear2', $this->default_value)
|
||||
|| $this->checkCacheExists('test_cid_clear3', $this->default_value),
|
||||
'All cache entries removed when the array exceeded the cache clear threshold.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,7 @@ stylesheets[all][] = common_test.css
|
|||
stylesheets[print][] = common_test.print.css
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ package = Testing
|
|||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -7,7 +7,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
dependencies[] = entity_cache_test_dependency
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -58,4 +58,33 @@ class EntityLoadTestCase extends DrupalWebTestCase {
|
|||
$nodes_loaded = entity_load('node', array('1.', '2'));
|
||||
$this->assertEqual(count($nodes_loaded), 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the controller class loading functionality on non-existing entity
|
||||
* types and on entities without valid controller class.
|
||||
*/
|
||||
public function testEntityLoadInvalidControllerClass() {
|
||||
// Ensure that loading a non-existing entity type will throw an
|
||||
// EntityMalformedException.
|
||||
try {
|
||||
entity_load('test', array('1'));
|
||||
$this->fail(t('Cannot load a controller class on non-existing entity type.'));
|
||||
}
|
||||
catch (EntityMalformedException $e) {
|
||||
$this->pass(t('Cannot load a controller class on non-existing entity type.'));
|
||||
}
|
||||
|
||||
// Ensure that loading an entity without valid controller class will throw
|
||||
// an EntityMalformedException.
|
||||
module_enable(array('entity_crud_hook_test'));
|
||||
variable_set('entity_crud_hook_test_alter_controller_class', TRUE);
|
||||
try {
|
||||
entity_load('node', array('1'));
|
||||
$this->fail(t('Cannot load a missing or non-existent controller class.'));
|
||||
}
|
||||
catch (EntityMalformedException $e) {
|
||||
$this->pass(t('Cannot load a missing or non-existent controller class.'));
|
||||
}
|
||||
variable_set('entity_crud_hook_test_alter_controller_class', FALSE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ package = Testing
|
|||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -249,3 +249,13 @@ function entity_crud_hook_test_taxonomy_vocabulary_delete() {
|
|||
function entity_crud_hook_test_user_delete() {
|
||||
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_entity_info_alter().
|
||||
*/
|
||||
function entity_crud_hook_test_entity_info_alter(&$entity_info) {
|
||||
if (variable_get('entity_crud_hook_test_alter_controller_class', FALSE)) {
|
||||
// Set the controller class for nodes to NULL.
|
||||
$entity_info['node']['controller class'] = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -103,6 +103,15 @@ class DrupalErrorHandlerTestCase extends DrupalWebTestCase {
|
|||
function assertErrorMessage(array $error) {
|
||||
$message = t('%type: !message in %function (line ', $error);
|
||||
$this->assertRaw($message, format_string('Found error message: !message.', array('!message' => $message)));
|
||||
|
||||
// Also check that no full path from the error is displayed.
|
||||
$this->assertNoRaw($error['%file'], format_string('Full path from error not displayed: %file.', array('%file' => $error['%file'])));
|
||||
|
||||
// Check that the path was displayed with the DRUPAL_ROOT hidden.
|
||||
$root_length = strlen(DRUPAL_ROOT);
|
||||
$stripped_path = substr($error['%file'], $root_length + 1);
|
||||
$sanitized_path = t('of %path)', array('%path' => $stripped_path));
|
||||
$this->assertRaw($sanitized_path, 'Path in error message was sanitized.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,5 +120,8 @@ class DrupalErrorHandlerTestCase extends DrupalWebTestCase {
|
|||
function assertNoErrorMessage(array $error) {
|
||||
$message = t('%type: !message in %function (line ', $error);
|
||||
$this->assertNoRaw($message, format_string('Did not find error message: !message.', array('!message' => $message)));
|
||||
|
||||
// Also check that no full path from the error is displayed.
|
||||
$this->assertNoRaw($error['%file'], format_string('Full path from error not displayed: %file.', array('%file' => $error['%file'])));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -2616,11 +2616,16 @@ class FileDownloadTest extends FileTestCase {
|
|||
$url = file_create_url($file->uri);
|
||||
|
||||
// Set file_test access header to allow the download.
|
||||
file_test_reset();
|
||||
file_test_set_return('download', array('x-foo' => 'Bar'));
|
||||
$this->drupalGet($url);
|
||||
$headers = $this->drupalGetHeaders();
|
||||
$this->assertEqual($headers['x-foo'], 'Bar', 'Found header set by file_test module on private download.');
|
||||
$this->assertResponse(200, 'Correctly allowed access to a file when file_test provides headers.');
|
||||
// Ensure hook_file_download is fired correctly.
|
||||
$hooks_results = file_test_get_all_calls();
|
||||
$file_uri = !empty($hooks_results['download']) ? reset($hooks_results['download'][0]) : '';
|
||||
$this->assertEqual($file->uri, $file_uri);
|
||||
|
||||
// Test that the file transferred correctly.
|
||||
$this->assertEqual($contents, $this->content, 'Contents of the file are correct.');
|
||||
|
@ -2631,9 +2636,23 @@ class FileDownloadTest extends FileTestCase {
|
|||
$this->assertResponse(403, 'Correctly denied access to a file when file_test sets the header to -1.');
|
||||
|
||||
// Try non-existent file.
|
||||
file_test_reset();
|
||||
$url = file_create_url('private://' . $this->randomName());
|
||||
$this->drupalHead($url);
|
||||
$this->assertResponse(404, 'Correctly returned 404 response for a non-existent file.');
|
||||
// Assert that hook_file_download is not called.
|
||||
$hooks_results = file_test_get_all_calls();
|
||||
$hook_download_results = isset($hooks_results['download']) ? $hooks_results['download'] : NULL;
|
||||
$this->assertEqual(array(), $hook_download_results);
|
||||
|
||||
// Try requesting the private file url without a file specified.
|
||||
file_test_reset();
|
||||
$this->drupalGet('system/files');
|
||||
$this->assertResponse(404, 'Correctly returned 404 response for a private file url without a file specified.');
|
||||
// Assert that hook_file_download is not called.
|
||||
$hooks_results = file_test_get_all_calls();
|
||||
$hook_download_results = isset($hooks_results['download']) ? $hooks_results['download'] : NULL;
|
||||
$this->assertEqual(array(), $hook_download_results);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
files[] = file_test.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -768,6 +768,109 @@ class FormValidationTestCase extends DrupalWebTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests validation of additional Form API properties.
|
||||
*
|
||||
* Limited to maxlength validation at present.
|
||||
*/
|
||||
class FormsElementsValidationTestCase extends DrupalWebTestCase {
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Form element validation - misc',
|
||||
'description' => 'Tests miscellaneous form element validation mechanisms.',
|
||||
'group' => 'Form API',
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
parent::setUp('form_test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests #maxlength validation.
|
||||
*/
|
||||
public function testMaxlengthValidation() {
|
||||
$max_length = 5;
|
||||
// The field types that support #maxlength.
|
||||
$form = array(
|
||||
'textfield' => array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => 'Textfield',
|
||||
'#required' => FALSE,
|
||||
'#maxlength' => $max_length,
|
||||
),
|
||||
'password' => array(
|
||||
'#type' => 'password',
|
||||
'#title' => 'Password',
|
||||
'#maxlength' => $max_length,
|
||||
),
|
||||
);
|
||||
|
||||
$edit = array(
|
||||
'textfield' => $this->randomString($max_length + 1),
|
||||
'password' => $this->randomString($max_length + 1),
|
||||
);
|
||||
list($processed_form, $form_state, $errors) = $this->formSubmitHelper($form, $edit);
|
||||
$this->assertFalse(empty($errors), 'Form with overly long inputs returned errors.');
|
||||
$this->assertTrue(isset($errors['textfield']) && strpos($errors['textfield'], 'cannot be longer than') !== FALSE, 'Long input error in textfield.');
|
||||
$this->assertTrue(isset($errors['password']) && strpos($errors['password'], 'cannot be longer than') !== FALSE, 'Long input error in password.');
|
||||
|
||||
// This test for NULL inputs cannot be performed using the drupalPost() method.
|
||||
$edit['textfield'] = NULL;
|
||||
$edit['password'] = NULL;
|
||||
list($processed_form, $form_state, $errors) = $this->formSubmitHelper($form, $edit);
|
||||
$this->assertTrue(empty($errors), 'Form with NULL inputs did not return errors.');
|
||||
|
||||
$edit['textfield'] = $this->randomString($max_length);
|
||||
$edit['password'] = $this->randomString($max_length);
|
||||
list($processed_form, $form_state, $errors) = $this->formSubmitHelper($form, $edit);
|
||||
$this->assertTrue(empty($errors), 'Form with maxlength inputs did not return errors.');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function for the option check test to submit a form while collecting errors.
|
||||
*
|
||||
* Copied from FormsElementsTableSelectFunctionalTest.
|
||||
*
|
||||
* @param $form_element
|
||||
* A form element to test.
|
||||
* @param $edit
|
||||
* An array containing post data.
|
||||
*
|
||||
* @return
|
||||
* An array containing the processed form, the form_state and any errors.
|
||||
*/
|
||||
private function formSubmitHelper($form, $edit) {
|
||||
$form_id = $this->randomName();
|
||||
$form_state = form_state_defaults();
|
||||
|
||||
$form['op'] = array('#type' => 'submit', '#value' => t('Submit'));
|
||||
|
||||
$form_state['input'] = $edit;
|
||||
$form_state['input']['form_id'] = $form_id;
|
||||
|
||||
// The form token CSRF protection should not interfere with this test,
|
||||
// so we bypass it by marking this test form as programmed.
|
||||
$form_state['programmed'] = TRUE;
|
||||
|
||||
drupal_prepare_form($form_id, $form, $form_state);
|
||||
|
||||
drupal_process_form($form_id, $form, $form_state);
|
||||
|
||||
$errors = form_get_errors();
|
||||
|
||||
// Clear errors and messages.
|
||||
drupal_get_messages();
|
||||
form_clear_error();
|
||||
|
||||
// Return the processed form together with form_state and errors
|
||||
// to allow the caller lowlevel access to the form.
|
||||
return array($form, $form_state, $errors);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test form element labels, required markers and associated output.
|
||||
*/
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -73,6 +73,7 @@ class PasswordHashingTest extends DrupalWebTestCase {
|
|||
$result = user_hash_password($password);
|
||||
$this->assertFalse(empty($result), '510 byte long password is allowed.');
|
||||
$password .= 'xx';
|
||||
$result = user_hash_password($password);
|
||||
$this->assertFalse(empty($result), '512 byte long password is allowed.');
|
||||
$password = str_repeat('€', 171);
|
||||
$result = user_hash_password($password);
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
package = Testing
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
package = Testing
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -7,7 +7,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -779,8 +779,10 @@ class SessionHttpsTestCase extends DrupalWebTestCase {
|
|||
$form[0]['action'] = $this->httpsUrl('user');
|
||||
$this->drupalPost(NULL, $edit, t('Log in'));
|
||||
|
||||
// Make the secure session cookie blank.
|
||||
curl_setopt($this->curlHandle, CURLOPT_COOKIE, "$secure_session_name=");
|
||||
// Make the secure session cookie blank. Closing the curl handler will stop
|
||||
// the previous session ID from persisting.
|
||||
$this->curlClose();
|
||||
$this->additionalCurlOptions[CURLOPT_COOKIE] = rawurlencode($secure_session_name) . '=;';
|
||||
$this->drupalGet($this->httpsUrl('user'));
|
||||
$this->assertNoText($admin_user->name, 'User is not logged in as admin');
|
||||
$this->assertNoText($standard_user->name, "The user's own name is not displayed because the invalid session cookie has logged them out.");
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
hidden = FALSE
|
||||
configure = config/broken
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
dependencies[] = _missing_dependency
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
dependencies[] = system_incompatible_core_version_test
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 5.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -7,7 +7,7 @@ hidden = TRUE
|
|||
; system_incompatible_module_version_test declares version 1.0
|
||||
dependencies[] = system_incompatible_module_version_test (>2.0)
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = 1.0
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -4,7 +4,7 @@ package = Only For Testing
|
|||
core = 7.x
|
||||
hidden = FALSE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
dependencies[] = drupal:filter
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ version = VERSION
|
|||
hidden = FALSE
|
||||
dependencies[] = system_null_version_test
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
files[] = system_test.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
dependencies[] = taxonomy
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ hidden = TRUE
|
|||
settings[basetheme_only] = base theme value
|
||||
settings[subtheme_override] = base theme value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -6,7 +6,7 @@ hidden = TRUE
|
|||
|
||||
settings[subtheme_override] = subtheme value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -17,7 +17,7 @@ stylesheets[all][] = system.base.css
|
|||
|
||||
settings[theme_test_setting] = default value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -4,7 +4,7 @@ core = 7.x
|
|||
hidden = TRUE
|
||||
engine = nyan_cat
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -118,10 +118,12 @@ class UnicodeUnitTest extends DrupalUnitTestCase {
|
|||
$testcase = array(
|
||||
'tHe QUIcK bRoWn' => 15,
|
||||
'ÜBER-åwesome' => 12,
|
||||
'NULL' => 0,
|
||||
);
|
||||
|
||||
foreach ($testcase as $input => $output) {
|
||||
$this->assertEqual(drupal_strlen($input), $output, format_string('%input length is %output', array('%input' => $input, '%output' => $output)));
|
||||
$tested_value = ($input === 'NULL' ? NULL : $input);
|
||||
$this->assertEqual(drupal_strlen($tested_value), $output, format_string('%input length is %output', array('%input' => $input, '%output' => $output)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ package = Testing
|
|||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
|
@ -5,7 +5,7 @@ version = VERSION
|
|||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
; Information added by Drupal.org packaging script on 2024-12-04
|
||||
version = "7.103"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
||||
datestamp = "1733324608"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue