Mercurial > hg > isophonics-drupal-site
diff core/modules/rdf/tests/src/Functional/NodeAttributesTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | c2387f117808 |
children |
line wrap: on
line diff
--- a/core/modules/rdf/tests/src/Functional/NodeAttributesTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/rdf/tests/src/Functional/NodeAttributesTest.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Tests\rdf\Functional; +use Drupal\Core\Url; use Drupal\Tests\node\Functional\NodeTestBase; /** @@ -47,8 +48,8 @@ 'title' => $this->randomMachineName(8) . "'", ]); - $node_uri = $node->url('canonical', ['absolute' => TRUE]); - $base_uri = \Drupal::url('<front>', [], ['absolute' => TRUE]); + $node_uri = $node->toUrl('canonical', ['absolute' => TRUE])->toString(); + $base_uri = Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString(); // Parses front page where the node is displayed in its teaser form. $parser = new \EasyRdf_Parser_Rdfa();