Mercurial > hg > isophonics-drupal-site
diff core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php Thu May 09 15:33:08 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();