You are here

public function ImmutableConfigTest::testDelete in Zircon Profile 8

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

@covers ::delete @expectedException \Drupal\Core\Config\ImmutableConfigException @expectedExceptionMessage Can not delete immutable configuration test. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object

File

core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php, line 66
Contains \Drupal\Tests\Core\Config\ImmutableConfigTest.

Class

ImmutableConfigTest
@coversDefaultClass \Drupal\Core\Config\ImmutableConfig @group Config

Namespace

Drupal\Tests\Core\Config

Code

public function testDelete() {
  $this->config
    ->delete();
}