You are here

public function ConfigTest::testSetIllegalOffsetValue 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::testSetIllegalOffsetValue()

@covers ::set @expectedException PHPUnit_Framework_Error_Warning

File

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

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function testSetIllegalOffsetValue() {

  // Set a single value.
  $this->config
    ->set('testData', 1);

  // Attempt to treat the single value as a nested item.
  $this->config
    ->set('testData.illegalOffset', 1);
}