summaryrefslogtreecommitdiffstatshomepage
path: root/core/tests/Drupal/KernelTests/KernelTestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Drupal/KernelTests/KernelTestBase.php')
-rw-r--r--core/tests/Drupal/KernelTests/KernelTestBase.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php
index 94be1c7ddf7..8189b7320ae 100644
--- a/core/tests/Drupal/KernelTests/KernelTestBase.php
+++ b/core/tests/Drupal/KernelTests/KernelTestBase.php
@@ -571,6 +571,7 @@ abstract class KernelTestBase extends TestCase implements ServiceProviderInterfa
$this->keyValue = new KeyValueMemoryFactory();
}
$container->set('keyvalue', $this->keyValue);
+ $container->getDefinition('keyvalue')->setSynthetic(TRUE);
// Set the default language on the minimal container.
$container->setParameter('language.default_values', Language::$defaultValues);