Mercurial > hg > cmmr2012-drupal-site
diff core/modules/path/tests/src/Functional/PathLanguageTest.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/path/tests/src/Functional/PathLanguageTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/path/tests/src/Functional/PathLanguageTest.php Thu May 09 15:34:47 2019 +0100 @@ -61,7 +61,6 @@ 'settings[node][page][settings][language][language_alterable]' => 1, ]; $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save configuration')); - \Drupal::entityManager()->clearCachedDefinitions(); $definitions = \Drupal::entityManager()->getFieldDefinitions('node', 'page'); $this->assertTrue($definitions['path']->isTranslatable(), 'Node path is translatable.'); @@ -118,7 +117,7 @@ // many levels, and we need to clear those caches. $this->container->get('language_manager')->reset(); $languages = $this->container->get('language_manager')->getLanguages(); - $url = $english_node_french_translation->url('canonical', ['language' => $languages['fr']]); + $url = $english_node_french_translation->toUrl('canonical', ['language' => $languages['fr']])->toString(); $this->assertTrue(strpos($url, $edit['path[0][alias]']), 'URL contains the path alias.');