function ConfigTest::assertConfigDataEquals

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertConfigDataEquals()
  2. 8.9.x core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertConfigDataEquals()
  3. 11.x 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 590

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

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.