function ConfigUninstallViaCliImportTest::testConfigUninstallViaCli
Same name in other branches
- 9 core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php \Drupal\Tests\config\Kernel\ConfigUninstallViaCliImportTest::testConfigUninstallViaCli()
- 8.9.x core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php \Drupal\Tests\config\Kernel\ConfigUninstallViaCliImportTest::testConfigUninstallViaCli()
- 10 core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php \Drupal\Tests\config\Kernel\ConfigUninstallViaCliImportTest::testConfigUninstallViaCli()
Tests that the config module can be uninstalled via CLI config import.
See also
\Drupal\config\ConfigSubscriber
File
-
core/
modules/ config/ tests/ src/ Kernel/ ConfigUninstallViaCliImportTest.php, line 66
Class
- ConfigUninstallViaCliImportTest
- Tests importing configuration from files into active configuration.
Namespace
Drupal\Tests\config\KernelCode
public function testConfigUninstallViaCli() : void {
$this->assertTrue($this->container
->get('module_handler')
->moduleExists('config'));
$sync = $this->container
->get('config.storage.sync');
$extensions = $sync->read('core.extension');
unset($extensions['module']['config']);
$sync->write('core.extension', $extensions);
$this->configImporter
->reset()
->import();
$this->assertFalse($this->container
->get('module_handler')
->moduleExists('config'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.