Mercurial > hg > isophonics-drupal-site
comparison core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
106 // Get the current host URI we're running on. | 106 // Get the current host URI we're running on. |
107 $base_url_host = parse_url($base_url, PHP_URL_HOST); | 107 $base_url_host = parse_url($base_url, PHP_URL_HOST); |
108 $edit = [ | 108 $edit = [ |
109 'language_negotiation_url_part' => LanguageNegotiationUrl::CONFIG_DOMAIN, | 109 'language_negotiation_url_part' => LanguageNegotiationUrl::CONFIG_DOMAIN, |
110 'domain[en]' => $base_url_host, | 110 'domain[en]' => $base_url_host, |
111 'domain[fr]' => $language_domain | 111 'domain[fr]' => $language_domain, |
112 ]; | 112 ]; |
113 $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration')); | 113 $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration')); |
114 // Rebuild the container so that the new language gets picked up by services | 114 // Rebuild the container so that the new language gets picked up by services |
115 // that hold the list of languages. | 115 // that hold the list of languages. |
116 $this->rebuildContainer(); | 116 $this->rebuildContainer(); |