function ConfigFactoryOverrideBaseTest::providerTestFilterNestedArray
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php \Drupal\Tests\Core\Config\ConfigFactoryOverrideBaseTest::providerTestFilterNestedArray()
- 10 core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php \Drupal\Tests\Core\Config\ConfigFactoryOverrideBaseTest::providerTestFilterNestedArray()
- 11.x core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php \Drupal\Tests\Core\Config\ConfigFactoryOverrideBaseTest::providerTestFilterNestedArray()
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigFactoryOverrideBaseTest.php, line 27
Class
- ConfigFactoryOverrideBaseTest
- @coversDefaultClass \Drupal\Core\Config\ConfigFactoryOverrideBase @group config
Namespace
Drupal\Tests\Core\ConfigCode
public function providerTestFilterNestedArray() {
$data = [];
$data['empty'] = [
[],
[],
[],
FALSE,
];
$data['one-level-no-change'] = [
[
'key' => 'value',
],
[],
[],
FALSE,
];
$data['one-level-override-no-change'] = [
[
'key' => 'value',
],
[
'key' => 'value2',
],
[
'key' => 'value2',
],
FALSE,
];
$data['one-level-override-change'] = [
[
'key' => 'value',
],
[
'key2' => 'value2',
],
[],
TRUE,
];
$data['one-level-multiple-override-change'] = [
[
'key' => 'value',
'key2' => 'value2',
],
[
'key2' => 'value2',
'key3' => 'value3',
],
[
'key2' => 'value2',
],
TRUE,
];
$data['multiple-level-multiple-override-change'] = [
[
'key' => [
'key' => 'value',
],
'key2' => [
'key' => 'value',
],
],
[
'key' => [
'key2' => 'value2',
],
'key2' => [
'key' => 'value',
],
],
[
'key2' => [
'key' => 'value',
],
],
TRUE,
];
$data['original-scalar-array-override'] = [
[
'key' => 'value',
],
[
'key' => [
'value1',
'value2',
],
],
[],
TRUE,
];
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.