You are here

public function ConfigTest::assertConfigDataEquals in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::assertConfigDataEquals()

Asserts all config data equals $data provided.

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 585

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function assertConfigDataEquals($data) {
  foreach ($data as $key => $value) {
    $this
      ->assertEquals($value, $this->config
      ->get($key));
  }
}