function ConfigTest::testSetData

Tests set data.

@legacy-covers ::setData

Attributes

#[DataProvider('nestedDataProvider')]

File

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

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

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

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