Mercurial > hg > isophonics-drupal-site
diff core/modules/locale/tests/src/Functional/LocaleUpdateBase.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/locale/tests/src/Functional/LocaleUpdateBase.php Thu Feb 28 13:21:36 2019 +0000 @@ -5,7 +5,7 @@ use Drupal\Core\StreamWrapper\PublicStream; use Drupal\file\Entity\File; use Drupal\Tests\BrowserTestBase; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; /** * Base class for testing updates to string translations. @@ -89,7 +89,7 @@ $edit = ['predefined_langcode' => $langcode]; $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language')); $this->container->get('language_manager')->reset(); - $this->assertTrue(\Drupal::languageManager()->getLanguage($langcode), SafeMarkup::format('Language %langcode added.', ['%langcode' => $langcode])); + $this->assertTrue(\Drupal::languageManager()->getLanguage($langcode), new FormattableMarkup('Language %langcode added.', ['%langcode' => $langcode])); } /**