function CheckpointStorageTest::testReadOperations

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php \Drupal\Tests\Core\Config\Checkpoint\CheckpointStorageTest::testReadOperations()

@covers ::exists @covers ::read @covers ::readMultiple @covers ::listAll

@dataProvider readMethodsProvider

File

core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php, line 121

Class

CheckpointStorageTest
@coversDefaultClass \Drupal\Core\Config\Checkpoint\CheckpointStorage @group Config

Namespace

Drupal\Tests\Core\Config\Checkpoint

Code

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.