function CheckpointStorageTest::testReadOperations
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php \Drupal\Tests\Core\Config\Checkpoint\CheckpointStorageTest::testReadOperations()
- 10 core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php \Drupal\Tests\Core\Config\Checkpoint\CheckpointStorageTest::testReadOperations()
Tests read operations.
Attributes
#[DataProvider('readMethodsProvider')]
See also
::exists
::read
::readMultiple
::listAll
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Checkpoint/ CheckpointStorageTest.php, line 123
Class
Namespace
Drupal\Tests\Core\Config\CheckpointCode
public function testReadOperations(string $method, array $arguments, array $fixture) : void {
// Create a checkpoint so the checkpoint storage can be read from.
$this->storage
->checkpoint('');
$this->setRandomFixtureConfig($fixture);
$expected = call_user_func_array([
$this->memory,
$method,
], $arguments);
$actual = call_user_func_array([
$this->storage,
$method,
], $arguments);
$this->assertEquals($expected, $actual);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.