From 0146f0f75333f270272e3d805a48e8f594df9ecc Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 2 Feb 2016 11:24:50 +0000 Subject: [PATCH] Issue #895656 by smccabe, adinac, andypost, mfb: dom and hash extensions already required by system module, do not need to be required by simpletest --- core/modules/simpletest/simpletest.install | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/modules/simpletest/simpletest.install b/core/modules/simpletest/simpletest.install index a7e4862ff859..e5eb9a30522a 100644 --- a/core/modules/simpletest/simpletest.install +++ b/core/modules/simpletest/simpletest.install @@ -19,7 +19,6 @@ function simpletest_requirements($phase) { $requirements = array(); $has_curl = function_exists('curl_init'); - $has_domdocument = method_exists('DOMDocument', 'loadHTML'); $open_basedir = ini_get('open_basedir'); $requirements['curl'] = array( @@ -31,15 +30,6 @@ function simpletest_requirements($phase) { $requirements['curl']['description'] = t('The testing framework could not be installed because the PHP <a href="http://php.net/manual/curl.setup.php">cURL</a> library is not available.'); } - $requirements['php_domdocument'] = array( - 'title' => t('PHP DOMDocument class'), - 'value' => $has_domdocument ? t('Enabled') : t('Not found'), - ); - if (!$has_domdocument) { - $requirements['php_domdocument']['severity'] = REQUIREMENT_ERROR; - $requirements['php_domdocument']['description'] = t('The testing framework requires the DOMDocument class to be available. Check the configure command at the <a href=":link-phpinfo">PHP info page</a>.', array(':link-phpinfo' => \Drupal::url('system.php'))); - } - // SimpleTest currently needs 2 cURL options which are incompatible with // having PHP's open_basedir restriction set. // See https://www.drupal.org/node/674304. -- GitLab