public function ReadOnlyStorageTest::readMethodsProvider in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::readMethodsProvider()
Provide the methods that work transparently.
Return value
array The data.
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ ReadOnlyStorageTest.php, line 65
Class
- ReadOnlyStorageTest
- @coversDefaultClass \Drupal\Core\Config\ReadOnlyStorage @group Config
Namespace
Drupal\Tests\Core\ConfigCode
public function readMethodsProvider() {
$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;
}