diff --git a/core/tests/Drupal/Tests/Core/Datetime/DateTest.php b/core/tests/Drupal/Tests/Core/Datetime/DateTest.php index a3d7e79..c9acfad 100644 --- a/core/tests/Drupal/Tests/Core/Datetime/DateTest.php +++ b/core/tests/Drupal/Tests/Core/Datetime/DateTest.php @@ -137,10 +137,6 @@ public function testFormatIntervalZeroSecond() { */ public function testGetSampleDateFormats() { include_once $this->root . '/core/includes/common.inc'; - $container = new ContainerBuilder(); - $container->set('string_translation', $this->getStringTranslationStub()); - \Drupal::setContainer($container); - $ts = strtotime('2015-03-22 14:23:00'); $this->dateFormatter->setCountry('GB'); $expected = $this->dateFormatter->getSampleDateFormats('en', $ts, 'Europe/London'); @@ -153,7 +149,6 @@ public function testGetSampleDateFormats() { foreach ($date_chars as $val) { $this->assertEquals($expected[$val], date($val, $ts)); } - } }