public function ConfigUninstallViaCliImportTest::testConfigUninstallViaCli in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php \Drupal\Tests\config\Kernel\ConfigUninstallViaCliImportTest::testConfigUninstallViaCli()
- 9 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 62
Class
- ConfigUninstallViaCliImportTest
- Tests importing configuration from files into active configuration.
Namespace
Drupal\Tests\config\KernelCode
public function testConfigUninstallViaCli() {
$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'));
}