You are here

public function ConfigTest::testSetValidation in Drupal 8

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

@covers ::set

File

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

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function testSetValidation() {
  $this
    ->expectException(ConfigValueException::class);
  $this->config
    ->set('testData', [
    'dot.key' => 1,
  ]);
}