function ConfigTest::assertConfigDataEquals
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertConfigDataEquals()
- 10 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertConfigDataEquals()
Asserts all config data equals $data provided.
@internal
Parameters
array $data: Config data to be checked.
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 590
Class
- ConfigTest
- Tests the Config.
Namespace
Drupal\Tests\Core\ConfigCode
public function assertConfigDataEquals(array $data) : void {
foreach ($data as $key => $value) {
$this->assertEquals($value, $this->config
->get($key));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.