Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/tests/src/Functional/UserTranslationUITest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | c2387f117808 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
61 | 61 |
62 foreach ($this->langcodes as $langcode) { | 62 foreach ($this->langcodes as $langcode) { |
63 // We only want to test the title for non-english translations. | 63 // We only want to test the title for non-english translations. |
64 if ($langcode != 'en') { | 64 if ($langcode != 'en') { |
65 $options = ['language' => $languages[$langcode]]; | 65 $options = ['language' => $languages[$langcode]]; |
66 $url = $entity->urlInfo('edit-form', $options); | 66 $url = $entity->toUrl('edit-form', $options); |
67 $this->drupalGet($url); | 67 $this->drupalGet($url); |
68 | 68 |
69 $title = t('@title [%language translation]', [ | 69 $title = t('@title [%language translation]', [ |
70 '@title' => $entity->getTranslation($langcode)->label(), | 70 '@title' => $entity->getTranslation($langcode)->label(), |
71 '%language' => $languages[$langcode]->getName(), | 71 '%language' => $languages[$langcode]->getName(), |