Mercurial > hg > cmmr2012-drupal-site
diff core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.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/taxonomy/tests/src/Functional/TokenReplaceTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php Thu May 09 15:34:47 2019 +0100 @@ -81,7 +81,7 @@ $tests['[term:tid]'] = $term1->id(); $tests['[term:name]'] = $term1->getName(); $tests['[term:description]'] = $term1->description->processed; - $tests['[term:url]'] = $term1->url('canonical', ['absolute' => TRUE]); + $tests['[term:url]'] = $term1->toUrl('canonical', ['absolute' => TRUE])->toString(); $tests['[term:node-count]'] = 0; $tests['[term:parent:name]'] = '[term:parent:name]'; $tests['[term:vocabulary:name]'] = $this->vocabulary->label(); @@ -112,10 +112,10 @@ $tests['[term:tid]'] = $term2->id(); $tests['[term:name]'] = $term2->getName(); $tests['[term:description]'] = $term2->description->processed; - $tests['[term:url]'] = $term2->url('canonical', ['absolute' => TRUE]); + $tests['[term:url]'] = $term2->toUrl('canonical', ['absolute' => TRUE])->toString(); $tests['[term:node-count]'] = 1; $tests['[term:parent:name]'] = $term1->getName(); - $tests['[term:parent:url]'] = $term1->url('canonical', ['absolute' => TRUE]); + $tests['[term:parent:url]'] = $term1->toUrl('canonical', ['absolute' => TRUE])->toString(); $tests['[term:parent:parent:name]'] = '[term:parent:parent:name]'; $tests['[term:vocabulary:name]'] = $this->vocabulary->label();