You are here

public function ConfigTest::testSetValue in Drupal 10

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

@covers ::set @dataProvider nestedDataProvider

File

core/tests/Drupal/Tests/Core/Config/ConfigTest.php, line 249

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

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