You are here

public function ConfigTest::testSetValidation in Zircon Profile 8

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

@covers ::set @expectedException \Drupal\Core\Config\ConfigValueException

File

core/tests/Drupal/Tests/Core/Config/ConfigTest.php, line 240
Contains \Drupal\Tests\Core\Config\ConfigTest.

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function testSetValidation() {
  $this->config
    ->set('testData', array(
    'dot.key' => 1,
  ));
}