comparison core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.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
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
147 147
148 foreach ($this->langcodes as $langcode) { 148 foreach ($this->langcodes as $langcode) {
149 // We only want to test the title for non-english translations. 149 // We only want to test the title for non-english translations.
150 if ($langcode != 'en') { 150 if ($langcode != 'en') {
151 $options = ['language' => $languages[$langcode]]; 151 $options = ['language' => $languages[$langcode]];
152 $url = $entity->urlInfo('edit-form', $options); 152 $url = $entity->toUrl('edit-form', $options);
153 $this->drupalGet($url); 153 $this->drupalGet($url);
154 154
155 $title = t('@title [%language translation]', [ 155 $title = t('@title [%language translation]', [
156 '@title' => $entity->getTranslation($langcode)->label(), 156 '@title' => $entity->getTranslation($langcode)->label(),
157 '%language' => $languages[$langcode]->getName(), 157 '%language' => $languages[$langcode]->getName(),