diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php index 5e8dd44..d5ba074 100644 --- a/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -478,6 +478,10 @@ public function toArray() { } } + public function __toString() { + return 'bloub'; + } + /** * Returns the route information for a render array. * diff --git a/core/modules/system/src/Tests/Common/RenderWebTest.php b/core/modules/system/src/Tests/Common/RenderWebTest.php index 5d7f36e..05a9cbe 100644 --- a/core/modules/system/src/Tests/Common/RenderWebTest.php +++ b/core/modules/system/src/Tests/Common/RenderWebTest.php @@ -149,10 +149,7 @@ function testDrupalRenderFormElements() { protected function assertRenderedElement(array $element, $xpath, array $xpath_args = array()) { $original_element = $element; $this->drupalSetContent(drupal_render($element)); - $this->verbose('
' . String::checkPlain(var_export($original_element, TRUE)) . '' - . '
' . String::checkPlain(var_export($element, TRUE)) . '' - . '