public function ConfigTest::testMerge in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::testMerge()
- 9 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::testMerge()
@covers ::merge @dataProvider mergeDataProvider
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 380
Class
- ConfigTest
- Tests the Config.
Namespace
Drupal\Tests\Core\ConfigCode
public function testMerge($data, $data_to_merge, $merged_data) {
// Set initial data.
$this->config
->setData($data);
// Data to merge.
$this->config
->merge($data_to_merge);
// Check that data has merged correctly.
$this
->assertEquals($merged_data, $this->config
->getRawData());
}