function ImmutableConfigTest::testDelete
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php \Drupal\Tests\Core\Config\ImmutableConfigTest::testDelete()
- 8.9.x core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php \Drupal\Tests\Core\Config\ImmutableConfigTest::testDelete()
- 11.x core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php \Drupal\Tests\Core\Config\ImmutableConfigTest::testDelete()
@covers ::delete
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ ImmutableConfigTest.php, line 65
Class
- ImmutableConfigTest
- @coversDefaultClass \Drupal\Core\Config\ImmutableConfig @group Config
Namespace
Drupal\Tests\Core\ConfigCode
public function testDelete() : void {
$this->expectException(ImmutableConfigException::class);
$this->expectExceptionMessage('Can not delete immutable configuration test. Use \\Drupal\\Core\\Config\\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object');
$this->config
->delete();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.