diff --git a/core/modules/node/src/Tests/NodeTranslationUITest.php b/core/modules/node/src/Tests/NodeTranslationUITest.php index 86010b8..f1ae933 100644 --- a/core/modules/node/src/Tests/NodeTranslationUITest.php +++ b/core/modules/node/src/Tests/NodeTranslationUITest.php @@ -339,7 +339,7 @@ protected function doTestAlternateHreflangLinks(Url $url_info) { $urls[$langcode] = $url_info->setAbsolute()->setOption('language', $languages[$langcode])->toString(); } foreach ($this->langcodes as $langcode) { - $this->drupalGet($url->toString(), array('language' => $languages[$langcode])); + $this->drupalGet($url_info->toString(), array('language' => $languages[$langcode])); foreach ($urls as $alternate_langcode => $url) { // Retrieve desired link elements from the HTML head. $links = $this->xpath('head/link[@rel = "alternate" and @href = :href and @hreflang = :hreflang]', diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php index aa41c0b..c890127 100644 --- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php +++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php @@ -77,7 +77,7 @@ public function testInternalBrowser() { // @see drupal_valid_test_ua() // Not using File API; a potential error must trigger a PHP warning. unlink($this->siteDirectory . '/.htkey'); - $this->drupalGet(Url::fromUri('base://core/install.php', array('external' => TRUE, 'absolute' => TRUE))->toString); + $this->drupalGet(Url::fromUri('base://core/install.php', array('external' => TRUE, 'absolute' => TRUE))->toString()); $this->assertResponse(403, 'Cannot access install.php.'); } diff --git a/core/modules/views/src/Tests/GlossaryTest.php b/core/modules/views/src/Tests/GlossaryTest.php index 448101c..3036ff0 100644 --- a/core/modules/views/src/Tests/GlossaryTest.php +++ b/core/modules/views/src/Tests/GlossaryTest.php @@ -67,7 +67,7 @@ public function testGlossaryView() { $this->assertResponse(200); foreach ($nodes_per_char as $char => $count) { - $href = Url::fromRoute('views.glossary.page_1', ['arg_0' => $char]); + $href = Url::fromRoute('views.glossary.page_1', ['arg_0' => $char])->toString(); $label = Unicode::strtoupper($char); // Get the summary link for a certain character. Filter by label and href // to ensure that both of them are correct.