Mercurial > hg > isophonics-drupal-site
diff core/modules/tour/tests/src/Functional/TourTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/tour/tests/src/Functional/TourTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/tour/tests/src/Functional/TourTest.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Tests\tour\Functional; +use Drupal\Core\Url; use Drupal\language\Entity\ConfigurableLanguage; use Drupal\tour\Entity\Tour; @@ -66,7 +67,7 @@ $elements = $this->xpath('//li[@data-id=:data_id and @class=:classes and ./p//a[@href=:href and contains(., :text)]]', [ ':classes' => 'tip-module-tour-test tip-type-text tip-tour-test-1', ':data_id' => 'tour-test-1', - ':href' => \Drupal::url('<front>', [], ['absolute' => TRUE]), + ':href' => Url::fromRoute('<front>', [], ['absolute' => TRUE])->toString(), ':text' => 'Drupal', ]); $this->assertEqual(count($elements), 1, 'Found Token replacement.');