X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Ftests%2Fsrc%2FFunctional%2FLocaleUpdateInterfaceTest.php;fp=web%2Fcore%2Fmodules%2Flocale%2Ftests%2Fsrc%2FFunctional%2FLocaleUpdateInterfaceTest.php;h=0ab558503c734205b2bac098d60fa6f526cefbcf;hp=c6c69c2a97e9470516ab93d8a66d7e7f774fa378;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php b/web/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php index c6c69c2a9..0ab558503 100644 --- a/web/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php +++ b/web/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php @@ -3,7 +3,6 @@ namespace Drupal\Tests\locale\Functional; use Drupal\Component\Render\FormattableMarkup; -use Drupal\Component\Utility\SafeMarkup; /** * Tests for the user interface of project interface translations. @@ -86,7 +85,7 @@ class LocaleUpdateInterfaceTest extends LocaleUpdateBase { $release_details = new FormattableMarkup('@module (@version). @info', [ '@module' => 'Locale test translate', '@version' => '1.3-dev', - '@info' => t('File not found at %local_path', ['%local_path' => 'core/modules/locale/tests/test.de.po']) + '@info' => t('File not found at %local_path', ['%local_path' => 'core/modules/locale/tests/test.de.po']), ]); $this->assertRaw($release_details->__toString(), 'Release details'); @@ -112,7 +111,7 @@ class LocaleUpdateInterfaceTest extends LocaleUpdateBase { // Check if translations are available for Drupal core. $this->drupalGet('admin/reports/translations'); $this->assertText(t('Updates for: @project', ['@project' => t('Drupal core')]), 'Translations found'); - $this->assertText(SafeMarkup::format('@module (@date)', ['@module' => t('Drupal core'), '@date' => format_date(REQUEST_TIME, 'html_date')]), 'Core translation update'); + $this->assertText(new FormattableMarkup('@module (@date)', ['@module' => t('Drupal core'), '@date' => format_date(REQUEST_TIME, 'html_date')]), 'Core translation update'); $update_button = $this->xpath('//input[@type="submit"][@value="' . t('Update translations') . '"]'); $this->assertTrue($update_button, 'Update translations button'); }