diff --git a/core/modules/system/lib/Drupal/system/Tests/System/FloodTest.php b/core/modules/system/lib/Drupal/system/Tests/System/FloodTest.php index dc0a5c7..76c00b4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/FloodTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/FloodTest.php @@ -48,7 +48,7 @@ function testCleanUp() { $name = 'flood_test_cleanup'; // Register expired event. - $flood = $this->container->get('flood'); + $flood = \Drupal::flood(); $flood->register($name, $window_expired); // Verify event is not allowed. $this->assertFalse($flood->isAllowed($name, $threshold));