public function ConfigTest::assertConfigDataEquals in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertConfigDataEquals()
- 9 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.
5 calls to ConfigTest::assertConfigDataEquals()
- ConfigTest::testDelete in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::delete @dataProvider overrideDataProvider
- ConfigTest::testInitWithData in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::initWithData @dataProvider nestedDataProvider
- ConfigTest::testOverrideData in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::setModuleOverride @covers ::setSettingsOverride @covers ::getOriginal @covers ::hasOverrides @dataProvider overrideDataProvider
- ConfigTest::testSetData in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::setData @dataProvider nestedDataProvider
- ConfigTest::testSetValue in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::set @dataProvider nestedDataProvider
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 582
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));
}
}