function CheckpointStorageTest::setUp
Same name in this branch
- 11.x core/tests/Drupal/KernelTests/Core/Config/Storage/Checkpoint/CheckpointStorageTest.php \Drupal\KernelTests\Core\Config\Storage\Checkpoint\CheckpointStorageTest::setUp()
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Config/Storage/Checkpoint/CheckpointStorageTest.php \Drupal\KernelTests\Core\Config\Storage\Checkpoint\CheckpointStorageTest::setUp()
- 10 core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php \Drupal\Tests\Core\Config\Checkpoint\CheckpointStorageTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Checkpoint/ CheckpointStorageTest.php, line 48
Class
- CheckpointStorageTest
- @coversDefaultClass \Drupal\Core\Config\Checkpoint\CheckpointStorage @group Config
Namespace
Drupal\Tests\Core\Config\CheckpointCode
protected function setUp() : void {
parent::setUp();
// Set up a memory storage we can manipulate to set fixtures.
$this->memory = new MemoryStorage();
$keyValueMemoryFactory = new KeyValueMemoryFactory();
$state = new State($keyValueMemoryFactory, new NullBackend('test'), new NullLockBackend());
$time = new Time();
$checkpoints = new LinearHistory($state, $time);
$this->storage = new CheckpointStorage($this->memory, $checkpoints, $keyValueMemoryFactory);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.