You are here

public function CachedStorageTest::containerBuild in Drupal 8

File

core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php, line 86

Class

CachedStorageTest
Tests CachedStorage operations.

Namespace

Drupal\KernelTests\Core\Config\Storage

Code

public function containerBuild(ContainerBuilder $container) {
  parent::containerBuild($container);

  // Use the regular database cache backend to aid testing.
  $container
    ->register('cache_factory', 'Drupal\\Core\\Cache\\DatabaseBackendFactory')
    ->addArgument(new Reference('database'))
    ->addArgument(new Reference('cache_tags.invalidator.checksum'));
}