->
register('flood', 'Drupal\Core\Flood\MemoryBackend'
) ->
addArgument(new Reference('request_stack'
));
$container ->
register('lock', 'Drupal\Core\Lock\NullLockBackend'
);
$container ->
register('cache_factory', 'Drupal\Core\Cache\MemoryBackendFactory'
);
// Use memory for key value storages to avoid database queries. Store the
// key value factory on the test object so that key value storages persist
// container rebuilds, otherwise all state data would vanish.
if (!
isset($this->keyValue
)) { $this->keyValue =
new KeyValueMemoryFactory();
} $container->
set('keyvalue',
$this->keyValue
);
// Set the default language on the minimal container.
$container->
setParameter('language.default_values', Language::
$defaultValues);
if ($this->strictConfigSchema
) { $container ->
register('testing.config_schema_checker', ConfigSchemaChecker::
class) ->
addArgument(new Reference('config.typed'
)) ->
addArgument($this->
getConfigSchemaExclusions())