updated core to 7.65

This commit is contained in:
2019-03-28 10:59:04 +01:00
parent b764ef206e
commit 6fb9e4806d
1057 changed files with 578 additions and 494 deletions

4
modules/simpletest/drupal_web_test_case.php Executable file → Normal file
View File

@@ -3012,7 +3012,7 @@ class DrupalWebTestCase extends DrupalTestCase {
if (!$message) {
$message = t('Raw "@raw" found', array('@raw' => $raw));
}
return $this->assert(strpos($this->drupalGetContent(), $raw) !== FALSE, $message, $group);
return $this->assert(strpos($this->drupalGetContent(), (string) $raw) !== FALSE, $message, $group);
}
/**
@@ -3032,7 +3032,7 @@ class DrupalWebTestCase extends DrupalTestCase {
if (!$message) {
$message = t('Raw "@raw" not found', array('@raw' => $raw));
}
return $this->assert(strpos($this->drupalGetContent(), $raw) === FALSE, $message, $group);
return $this->assert(strpos($this->drupalGetContent(), (string) $raw) === FALSE, $message, $group);
}
/**

0
modules/simpletest/files/README.txt Executable file → Normal file
View File

View File

0
modules/simpletest/files/css_test_files/css_input_with_import.css vendored Executable file → Normal file
View File

View File

0
modules/simpletest/files/css_test_files/import1.css Executable file → Normal file
View File

0
modules/simpletest/files/css_test_files/import2.css Executable file → Normal file
View File

0
modules/simpletest/files/html-1.txt Executable file → Normal file
View File

0
modules/simpletest/files/html-2.html Executable file → Normal file
View File

0
modules/simpletest/files/image-1.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

0
modules/simpletest/files/image-2.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

0
modules/simpletest/files/image-test.gif Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 183 B

0
modules/simpletest/files/image-test.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
modules/simpletest/files/image-test.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 125 B

After

Width:  |  Height:  |  Size: 125 B

0
modules/simpletest/files/javascript-1.txt Executable file → Normal file
View File

0
modules/simpletest/files/javascript-2.script Executable file → Normal file
View File

0
modules/simpletest/files/php-1.txt Executable file → Normal file
View File

0
modules/simpletest/files/php-2.php Executable file → Normal file
View File

0
modules/simpletest/files/sql-1.txt Executable file → Normal file
View File

0
modules/simpletest/files/sql-2.sql Executable file → Normal file
View File

View File

0
modules/simpletest/simpletest.api.php Executable file → Normal file
View File

0
modules/simpletest/simpletest.css Executable file → Normal file
View File

6
modules/simpletest/simpletest.info Executable file → Normal file
View File

@@ -57,7 +57,7 @@ files[] = tests/upgrade/update.trigger.test
files[] = tests/upgrade/update.field.test
files[] = tests/upgrade/update.user.test
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/simpletest.install Executable file → Normal file
View File

0
modules/simpletest/simpletest.js Executable file → Normal file
View File

0
modules/simpletest/simpletest.module Executable file → Normal file
View File

0
modules/simpletest/simpletest.pages.inc Executable file → Normal file
View File

0
modules/simpletest/simpletest.test Executable file → Normal file
View File

0
modules/simpletest/tests/actions.test Executable file → Normal file
View File

6
modules/simpletest/tests/actions_loop_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/actions_loop_test.install Executable file → Normal file
View File

0
modules/simpletest/tests/actions_loop_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/ajax.test Executable file → Normal file
View File

6
modules/simpletest/tests/ajax_forms_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ package = Testing
version = VERSION
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/ajax_forms_test.module Executable file → Normal file
View File

6
modules/simpletest/tests/ajax_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/ajax_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/batch.test Executable file → Normal file
View File

0
modules/simpletest/tests/batch_test.callbacks.inc Executable file → Normal file
View File

6
modules/simpletest/tests/batch_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/batch_test.module Executable file → Normal file
View File

View File

@@ -5,7 +5,7 @@ package = Testing
version = VERSION
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

View File

@@ -5,7 +5,7 @@ package = Testing
version = VERSION
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

8
modules/simpletest/tests/bootstrap.test Executable file → Normal file
View File

@@ -729,16 +729,12 @@ class BootstrapMiscTestCase extends DrupalUnitTestCase {
* Tests that the drupal_check_memory_limit() function works as expected.
*/
function testCheckMemoryLimit() {
$memory_limit = ini_get('memory_limit');
// Test that a very reasonable amount of memory is available.
$this->assertTrue(drupal_check_memory_limit('30MB'), '30MB of memory tested available.');
// Get the available memory and multiply it by two to make it unreasonably
// high.
$twice_avail_memory = ($memory_limit * 2) . 'MB';
// Test an unlimited memory limit.
// The function should always return true if the memory limit is set to -1.
$this->assertTrue(drupal_check_memory_limit($twice_avail_memory, -1), 'drupal_check_memory_limit() returns TRUE when a limit of -1 (none) is supplied');
$this->assertTrue(drupal_check_memory_limit('9999999999YB', -1), 'drupal_check_memory_limit() returns TRUE when a limit of -1 (none) is supplied');
// Test that even though we have 30MB of memory available - the function
// returns FALSE when given an upper limit for how much memory can be used.

0
modules/simpletest/tests/cache.test Executable file → Normal file
View File

0
modules/simpletest/tests/common.test Executable file → Normal file
View File

0
modules/simpletest/tests/common_test.css Executable file → Normal file
View File

6
modules/simpletest/tests/common_test.info Executable file → Normal file
View File

@@ -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 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/common_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/common_test.print.css Executable file → Normal file
View File

6
modules/simpletest/tests/common_test_cron_helper.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

View File

0
modules/simpletest/tests/common_test_info.txt Executable file → Normal file
View File

6
modules/simpletest/tests/database_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ package = Testing
version = VERSION
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/database_test.install Executable file → Normal file
View File

0
modules/simpletest/tests/database_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/database_test.test Executable file → Normal file
View File

View File

@@ -7,7 +7,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

6
modules/simpletest/tests/entity_cache_test.info Executable file → Normal file
View File

@@ -6,7 +6,7 @@ core = 7.x
dependencies[] = entity_cache_test_dependency
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/entity_cache_test.module Executable file → Normal file
View File

View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

View File

6
modules/simpletest/tests/entity_crud_hook_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ package = Testing
version = VERSION
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/entity_crud_hook_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/entity_crud_hook_test.test Executable file → Normal file
View File

0
modules/simpletest/tests/entity_query.test Executable file → Normal file
View File

6
modules/simpletest/tests/entity_query_access_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

View File

0
modules/simpletest/tests/error.test Executable file → Normal file
View File

6
modules/simpletest/tests/error_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/error_test.module Executable file → Normal file
View File

17
modules/simpletest/tests/file.test Executable file → Normal file
View File

@@ -957,6 +957,15 @@ class FileDirectoryTest extends FileTestCase {
$path = file_create_filename($basename, $directory);
$this->assertEqual($path, $expected, format_string('Creating a new filepath from %original equals %new.', array('%new' => $path, '%original' => $original)), 'File');
try {
$filename = "a\xFFtest\x80€.txt";
file_create_filename($filename, $directory);
$this->fail('Expected exception not thrown');
}
catch (RuntimeException $e) {
$this->assertEqual("Invalid filename '$filename'", $e->getMessage());
}
// @TODO: Finally we copy a file into a directory several times, to ensure a properly iterating filename suffix.
}
@@ -989,6 +998,14 @@ class FileDirectoryTest extends FileTestCase {
$this->assertNotEqual($path, $destination, 'A new filepath destination is created when filepath destination already exists with FILE_EXISTS_RENAME.', 'File');
$path = file_destination($destination, FILE_EXISTS_ERROR);
$this->assertEqual($path, FALSE, 'An error is returned when filepath destination already exists with FILE_EXISTS_ERROR.', 'File');
try {
file_destination("core/misc/a\xFFtest\x80€.txt", FILE_EXISTS_REPLACE);
$this->fail('Expected exception not thrown');
}
catch (RuntimeException $e) {
$this->assertEqual("Invalid filename 'a\xFFtest\x80€.txt'", $e->getMessage());
}
}
/**

6
modules/simpletest/tests/file_test.info Executable file → Normal file
View File

@@ -6,7 +6,7 @@ core = 7.x
files[] = file_test.module
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/file_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/filetransfer.test Executable file → Normal file
View File

6
modules/simpletest/tests/filter_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/filter_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/form.test Executable file → Normal file
View File

0
modules/simpletest/tests/form_test.file.inc Executable file → Normal file
View File

6
modules/simpletest/tests/form_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/form_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/graph.test Executable file → Normal file
View File

0
modules/simpletest/tests/http.php Executable file → Normal file
View File

0
modules/simpletest/tests/https.php Executable file → Normal file
View File

0
modules/simpletest/tests/image.test Executable file → Normal file
View File

6
modules/simpletest/tests/image_test.info Executable file → Normal file
View File

@@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE
; Information added by Drupal.org packaging script on 2019-01-16
version = "7.63"
; Information added by Drupal.org packaging script on 2019-03-20
version = "7.65"
project = "drupal"
datestamp = "1547681965"
datestamp = "1553100118"

0
modules/simpletest/tests/image_test.module Executable file → Normal file
View File

0
modules/simpletest/tests/lock.test Executable file → Normal file
View File

0
modules/simpletest/tests/mail.test Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More