diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index b6f7a23..014a795 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -1485,9 +1485,6 @@ protected function isInChildSite() { * The retrieved HTML string, also available as $this->getRawContent() */ protected function drupalGet($path, array $options = array(), array $headers = array()) { - if ($path instanceof Url) { - $path = $path->toString(); - } // We re-using a CURL connection here. If that connection still has certain // options set, it might change the GET into a POST. Make sure we clear out // previous options. @@ -1500,6 +1497,10 @@ protected function drupalGet($path, array $options = array(), array $headers = a $out = $new; } + if ($path instanceof Url) { + $path = $path->toString(); + } + $verbose = 'GET request to: ' . $path . '