Mercurial > hg > isophonics-drupal-site
diff core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.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 |
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php Thu May 09 15:33:08 2019 +0100 @@ -112,7 +112,7 @@ // Formatting the date 8 / 27 / 1985 @ 13:37 EST with pattern D should // display "Tue". - $formatted_date = format_date(494015820, $type = 'medium', NULL, 'America/New_York', $this->langcode); + $formatted_date = $this->container->get('date.formatter')->format(494015820, $type = 'medium', NULL, 'America/New_York', $this->langcode); $this->assertEqual($formatted_date, 'Tue', 'Got the right formatted date using the date format translation pattern.'); // Assert strings from image module config are not available.