X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Ftests%2Fsrc%2FFunctional%2FLocaleJavascriptTranslationTest.php;h=1d6fde703b195b1113248755c334b72faa6cbaeb;hp=d46fa5ea91d31d515eeb8cff38cca2db19368548;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php b/web/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php index d46fa5ea9..1d6fde703 100644 --- a/web/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php +++ b/web/core/modules/locale/tests/src/Functional/LocaleJavascriptTranslationTest.php @@ -4,7 +4,7 @@ namespace Drupal\Tests\locale\Functional; use Drupal\Core\Language\LanguageInterface; use Drupal\Tests\BrowserTestBase; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; /** * Tests parsing js files for translatable strings. @@ -92,10 +92,10 @@ class LocaleJavascriptTranslationTest extends BrowserTestBase { $args = ['%source' => $str, '%context' => $context]; // Make sure that the string was found in the file. - $this->assertTrue(isset($source_strings[$str]), SafeMarkup::format('Found source string: %source', $args)); + $this->assertTrue(isset($source_strings[$str]), new FormattableMarkup('Found source string: %source', $args)); // Make sure that the proper context was matched. - $message = $context ? SafeMarkup::format('Context for %source is %context', $args) : SafeMarkup::format('Context for %source is blank', $args); + $message = $context ? new FormattableMarkup('Context for %source is %context', $args) : new FormattableMarkup('Context for %source is blank', $args); $this->assertTrue(isset($source_strings[$str]) && $source_strings[$str] === $context, $message); }