/** * @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 */ public function testDelete() { $this->config->delete(); }