public function CachedStorageTest::containerBuild in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/src/Tests/Storage/CachedStorageTest.php \Drupal\config\Tests\Storage\CachedStorageTest::containerBuild()
Sets up the base service container for this test.
Extend this method in your test to register additional service overrides that need to persist a DrupalKernel reboot. This method is called whenever the kernel is rebuilt.
Overrides KernelTestBase::containerBuild
See also
\Drupal\simpletest\KernelTestBase::setUp()
\Drupal\simpletest\KernelTestBase::enableModules()
\Drupal\simpletest\KernelTestBase::disableModules()
File
- core/
modules/ config/ src/ Tests/ Storage/ CachedStorageTest.php, line 91 - Contains \Drupal\config\Tests\Storage\CachedStorageTest.
Class
- CachedStorageTest
- Tests CachedStorage operations.
Namespace
Drupal\config\Tests\StorageCode
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'));
}