function CheckpointStorageTest::readMethodsProvider

Provide the methods that work transparently.

Return value

array The data.

File

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

Class

CheckpointStorageTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Config%21Checkpoint%21CheckpointStorage.php/class/CheckpointStorage/11.x" title="Provides a config storage that can make checkpoints." class="local">\Drupal\Core\Config\Checkpoint\CheckpointStorage</a> @group Config

Namespace

Drupal\Tests\Core\Config\Checkpoint

Code

public static function readMethodsProvider() : array {
    $fixture = [
        StorageInterface::DEFAULT_COLLECTION => [
            'config.a',
            'config.b',
            'other.a',
        ],
    ];
    $data = [];
    $data[] = [
        'exists',
        [
            'config.a',
        ],
        $fixture,
    ];
    $data[] = [
        'exists',
        [
            'not.existing',
        ],
        $fixture,
    ];
    $data[] = [
        'read',
        [
            'config.a',
        ],
        $fixture,
    ];
    $data[] = [
        'read',
        [
            'not.existing',
        ],
        $fixture,
    ];
    $data[] = [
        'readMultiple',
        [
            [
                'config.a',
                'config.b',
                'not',
            ],
        ],
        $fixture,
    ];
    $data[] = [
        'listAll',
        [
            '',
        ],
        $fixture,
    ];
    $data[] = [
        'listAll',
        [
            'config',
        ],
        $fixture,
    ];
    $data[] = [
        'listAll',
        [
            'none',
        ],
        $fixture,
    ];
    return $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.