diff core/modules/rdf/tests/src/Functional/TaxonomyAttributesTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/modules/rdf/tests/src/Functional/TaxonomyAttributesTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/rdf/tests/src/Functional/TaxonomyAttributesTest.php	Thu May 09 15:34:47 2019 +0100
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\rdf\Functional;
 
+use Drupal\Core\Url;
 use Drupal\Tests\taxonomy\Functional\TaxonomyTestBase;
 
 /**
@@ -44,12 +45,12 @@
    */
   public function testTaxonomyTermRdfaAttributes() {
     $term = $this->createTerm($this->vocabulary);
-    $term_uri = $term->url('canonical', ['absolute' => TRUE]);
+    $term_uri = $term->toUrl('canonical', ['absolute' => TRUE])->toString();
 
     // Parses the term's page and checks that the RDF output is correct.
     $parser = new \EasyRdf_Parser_Rdfa();
     $graph = new \EasyRdf_Graph();
-    $base_uri = \Drupal::url('<front>', [], ['absolute' => TRUE]);
+    $base_uri = Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString();
     $parser->parse($graph, $this->drupalGet('taxonomy/term/' . $term->id()), 'rdfa', $base_uri);
 
     // Inspects RDF graph output.