public function ConfigTest::assertOriginalConfigDataEquals in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertOriginalConfigDataEquals()
Asserts all original config data equals $data provided.
Parameters
array $data: Config data to be checked.
bool $apply_overrides: Apply any overrides to the original data.
5 calls to ConfigTest::assertOriginalConfigDataEquals()
- 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::testSaveExisting in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::save @dataProvider nestedDataProvider
- ConfigTest::testSaveNew in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - @covers ::save @dataProvider nestedDataProvider
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 599
Class
- ConfigTest
- Tests the Config.
Namespace
Drupal\Tests\Core\ConfigCode
public function assertOriginalConfigDataEquals($data, $apply_overrides) {
foreach ($data as $key => $value) {
$config_value = $this->config
->getOriginal($key, $apply_overrides);
$this
->assertEquals($value, $config_value);
}
}