diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php index a75ade4..14c85d1 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -54,6 +54,16 @@ protected $headers; /** + * Indicates that headers should be dumped if verbose output is enabled. + * + * Headers are dumped to verbose by drupalGet(), drupalHead(), and + * drupalPost(). + * + * @var bool + */ + protected $dumpHeaders = FALSE; + + /** * The content of the page currently loaded in the internal browser. * * @var string @@ -1191,9 +1201,15 @@ protected function drupalGet($path, array $options = array(), array $headers = a if ($new = $this->checkForMetaRefresh()) { $out = $new; } - $this->verbose('GET request to: ' . $path . - '
' . check_plain(var_export(array_map('trim', $this->headers), TRUE)) . ''; + } + $verbose .= '
' . check_plain(var_export(array_map('trim', $this->headers), TRUE)) . ''; + } + $verbose .= '
' . check_plain(var_export(array_map('trim', $this->headers), TRUE)) . ''); + } + return $out; } diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php index 8ee5bba..253c463 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php @@ -14,6 +14,8 @@ */ class PageCacheTest extends WebTestBase { + protected $dumpHeaders = TRUE; + /** * Modules to enable. *