function CheckpointStorageTest::writeMethodsProvider
Provide the methods that throw an exception.
Return value
array The data
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Checkpoint/ CheckpointStorageTest.php, line 188
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\CheckpointCode
public static function writeMethodsProvider() : array {
$fixture = [
StorageInterface::DEFAULT_COLLECTION => [
'config.a',
'config.b',
],
];
$data = [];
$data[] = [
'write',
[
'config.a',
(array) Random::getGenerator()->object(),
],
$fixture,
];
$data[] = [
'write',
[
Random::MachineName(),
(array) Random::getGenerator()->object(),
],
$fixture,
];
$data[] = [
'delete',
[
'config.a',
],
$fixture,
];
$data[] = [
'delete',
[
Random::MachineName(),
],
$fixture,
];
$data[] = [
'rename',
[
'config.a',
'config.b',
],
$fixture,
];
$data[] = [
'rename',
[
'config.a',
Random::MachineName(),
],
$fixture,
];
$data[] = [
'rename',
[
Random::MachineName(),
Random::MachineName(),
],
$fixture,
];
$data[] = [
'deleteAll',
[
'',
],
$fixture,
];
$data[] = [
'deleteAll',
[
'config',
],
$fixture,
];
$data[] = [
'deleteAll',
[
'other',
],
$fixture,
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.