Mercurial > hg > isophonics-drupal-site
diff core/modules/language/tests/src/Functional/LanguageConfigurationTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Tests\language\Functional; +use Drupal\Core\Url; use Drupal\Core\Language\LanguageInterface; use Drupal\language\Entity\ConfigurableLanguage; use Drupal\Tests\BrowserTestBase; @@ -46,7 +47,7 @@ ]; $this->drupalPostForm(NULL, $edit, 'Add language'); $this->assertText('French'); - $this->assertUrl(\Drupal::url('entity.configurable_language.collection', [], ['absolute' => TRUE]), [], 'Correct page redirection.'); + $this->assertUrl(Url::fromRoute('entity.configurable_language.collection', [], ['absolute' => TRUE])->toString(), [], 'Correct page redirection.'); // Langcode for Languages is always 'en'. $language = $this->config('language.entity.fr')->get(); $this->assertEqual($language['langcode'], 'en'); @@ -69,7 +70,7 @@ $this->drupalPostForm(NULL, $edit, t('Save configuration')); $this->rebuildContainer(); $this->assertFieldChecked('edit-site-default-language-fr', 'Default language updated.'); - $this->assertUrl(\Drupal::url('entity.configurable_language.collection', [], ['absolute' => TRUE, 'langcode' => 'fr']), [], 'Correct page redirection.'); + $this->assertUrl(Url::fromRoute('entity.configurable_language.collection', [], ['absolute' => TRUE, 'langcode' => 'fr'])->toString(), [], 'Correct page redirection.'); // Check if a valid language prefix is added after changing the default // language.