diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index b7555ae..8d17f3d 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -479,10 +479,13 @@ private function getCompiledContainerBuilder(array $modules) { return $container; } + /** + * Initializes the FileCacheFactory component. + * + * We can not use the Settings object in a component, that's why we have to do + * it here instead of \Drupal\Component\FileCache\FileCacheFactory. + */ protected function initFileCache() { - // Initialize the FileCacheFactory component. We have to do it here instead - // of in \Drupal\Component\FileCache\FileCacheFactory because we can not use - // the Settings object in a component. $configuration = Settings::get('file_cache'); // Provide a default configuration, if not set.