You are here

public function MockConfig::delete in Configuration Update Manager 8

Deletes the configuration.

File

tests/src/Unit/ConfigUpdateUnitTestBase.php, line 502

Class

MockConfig
Mock class for mutable configuration, config entity, and entity storage.

Namespace

Drupal\Tests\config_update\Unit

Code

public function delete() {
  $config = $this->test
    ->getConfigStorage();
  unset($config[$this->name]);
  $this->test
    ->setConfigStorage($config);
  return $this;
}