You are here

public function ConfigFactoryOverrideBaseTest::testFilterNestedArray in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php \Drupal\Tests\Core\Config\ConfigFactoryOverrideBaseTest::testFilterNestedArray()

@dataProvider providerTestFilterNestedArray

File

core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php, line 20

Class

ConfigFactoryOverrideBaseTest
@coversDefaultClass \Drupal\Core\Config\ConfigFactoryOverrideBase @group config

Namespace

Drupal\Tests\Core\Config

Code

public function testFilterNestedArray(array $original_data, array $override_data_before, array $override_data_after, $changed) {
  $config_factory = new TestConfigFactoryOverrideBase();
  $result = $config_factory
    ->doFilterNestedArray($original_data, $override_data_before);
  $this
    ->assertEquals($changed, $result);
  $this
    ->assertEquals($override_data_after, $override_data_before);
}