function ConfigTest::assertOriginalConfigDataEquals

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertOriginalConfigDataEquals()
  2. 8.9.x core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertOriginalConfigDataEquals()
  3. 10 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertOriginalConfigDataEquals()

Asserts all original config data equals $data provided.

@internal

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 606

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function assertOriginalConfigDataEquals(array $data, bool $apply_overrides) : void {
    foreach ($data as $key => $value) {
        $config_value = $this->config
            ->getOriginal($key, $apply_overrides);
        $this->assertEquals($value, $config_value);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.