You are here

public function DatabaseStorageExpirableTest::containerBuild in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/KeyValueStore/DatabaseStorageExpirableTest.php \Drupal\system\Tests\KeyValueStore\DatabaseStorageExpirableTest::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/system/src/Tests/KeyValueStore/DatabaseStorageExpirableTest.php, line 36
Contains \Drupal\system\Tests\KeyValueStore\DatabaseStorageExpirableTest.

Class

DatabaseStorageExpirableTest
Tests the key-value database storage.

Namespace

Drupal\system\Tests\KeyValueStore

Code

public function containerBuild(ContainerBuilder $container) {
  parent::containerBuild($container);
  $parameter[KeyValueFactory::DEFAULT_SETTING] = 'keyvalue.expirable.database';
  $container
    ->setParameter('factory.keyvalue.expirable', $parameter);
}