diff core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.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
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php	Thu May 09 15:34:47 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.