diff --git a/core/modules/simpletest/src/InstallerTestBase.php b/core/modules/simpletest/src/InstallerTestBase.php index 810f8fb..0f4af3a 100644 --- a/core/modules/simpletest/src/InstallerTestBase.php +++ b/core/modules/simpletest/src/InstallerTestBase.php @@ -216,13 +216,7 @@ protected function setUpSettings() { * @see system_requirements() */ protected function setUpRequirementsProblem() { - // Assert an informational is shown on older test environments. - if (version_compare(phpversion(), DRUPAL_MINIMUM_INSTALL_PHP) < 0) { - $this->assertNoText('Errors found'); - $this->assertNoText('Warnings found'); - $this->assertInfoSummaries(['PHP']); - $this->clickLink('continue anyway'); - } + // Do nothing. } /** diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php index e1cd9c7..a66bd57 100644 --- a/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php @@ -247,14 +247,7 @@ protected function setUpSettings() { * @see system_requirements() */ protected function setUpRequirementsProblem() { - // Assert an informational is shown on older test environments. - if (version_compare(phpversion(), DRUPAL_MINIMUM_INSTALL_PHP) < 0) { - $this->assertNoText('Errors found'); - $this->assertNoText('Warnings found'); - $this->assertInfoSummaries(['PHP']); - $this->clickLink('continue anyway'); - $this->checkForMetaRefresh(); - } + // Do nothing. } /** diff --git a/core/tests/Drupal/Tests/RequirementsPageTrait.php b/core/tests/Drupal/Tests/RequirementsPageTrait.php index b2eb553..82e87ca 100644 --- a/core/tests/Drupal/Tests/RequirementsPageTrait.php +++ b/core/tests/Drupal/Tests/RequirementsPageTrait.php @@ -72,39 +72,4 @@ protected function assertWarningSummaries(array $warning_summaries) { $this->assertEquals($warning_summaries, $warnings); } - /** - * Assert the given info summaries are present on the page. - * - * If an expected info is not found, or if a info not in the list is present, - * a fail is raised. - * - * @param string[] $info_summaries - * A list of info summaries to expect on the requirements screen (e.g. - * 'PHP', 'PHP OPcode caching', etc.). - */ - protected function assertInfoSummaries(array $info_summaries) { - // Allow only details elements that are directly after the info header - // or each other. There is no guaranteed wrapper we can rely on across - // distributions. When there are multiple infos, the selectors will be: - // - h3#checked+details summary - // - h3#checked+details+details summary - // - etc. - // We add one more selector than expected infos to confirm that there - // isn't any other info before clicking the link. - // @todo Make this more reliable in - // https://www.drupal.org/project/drupal/issues/2927345. - $selectors = []; - for ($i = 0; $i <= count($info_summaries); $i++) { - $selectors[] = 'h3#checked' . implode('', array_fill(0, $i + 1, '+details')) . ' summary'; - } - $info_elements = $this->cssSelect(implode(', ', $selectors)); - - // Confirm that there are only the expected infos. - $infos = []; - foreach ($info_elements as $info) { - $infos[] = trim($info->getText()); - } - $this->assertEquals($info_summaries, $infos); - } - }