core/lib/Drupal/Core/Extension/InfoParserDynamic.php | 2 +- .../modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Extension/InfoParserDynamic.php b/core/lib/Drupal/Core/Extension/InfoParserDynamic.php index ecfd128ec6..41d70d0be8 100644 --- a/core/lib/Drupal/Core/Extension/InfoParserDynamic.php +++ b/core/lib/Drupal/Core/Extension/InfoParserDynamic.php @@ -36,7 +36,7 @@ public function parse($filename) { throw new InfoParserException("The {$parsed_info['core']} is not valid value for 'core' in " . $filename); } if (isset($parsed_info['core_dependency'])) { - if (DrupalSemver::satisfies('8.7.6', $parsed_info['core_dependency']) && !DrupalSemver::satisfies('8.0.0', $parsed_info['core_dependency'])) { + if (DrupalSemver::satisfies('8.7.7', $parsed_info['core_dependency']) && !DrupalSemver::satisfies('8.0.0', $parsed_info['core_dependency'])) { throw new InfoParserException("The 'core_dependency' can not be used to specify compatibility specific version before 8.7.7 in " . $filename); } } diff --git a/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php b/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php index 52e4160cda..c1578f9c89 100644 --- a/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php +++ b/core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php @@ -70,7 +70,7 @@ public function testModulesListFormWithInvalidInfoFile() { // Confirm that the error message is shown. $this->assertSession() - ->pageTextContains('Modules could not be listed due to an error: Missing required keys (core) in ' . $path . '/broken.info.yml'); + ->pageTextContains('Modules could not be listed due to an error: The \'core\' or the \'core_dependency\' key must be present in ' . $path . '/broken.info.yml'); // Check that the module filter text box is available. $this->assertTrue($this->xpath('//input[@name="text"]'));