function ImmutableConfigTest::testSet
Tests set.
@legacy-covers ::set
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Config/ ImmutableConfigTest.php, line 43  
Class
Namespace
Drupal\Tests\Core\ConfigCode
public function testSet() : void {
  $this->expectException(ImmutableConfigException::class);
  $this->expectExceptionMessage('Can not set values on immutable configuration test:name. Use \\Drupal\\Core\\Config\\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object');
  $this->config
    ->set('name', 'value');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.