You are here

public function ConfigTest::testSetData 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::testSetData()
  2. 9 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::testSetData()

@covers ::setData @dataProvider nestedDataProvider

File

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

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function testSetData($data) {
  $this->config
    ->setData($data);
  $this
    ->assertEquals($data, $this->config
    ->getRawData());
  $this
    ->assertConfigDataEquals($data);
}