function ConfigImporterTest::testIsInstallable
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::testIsInstallable()
- 8.9.x core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::testIsInstallable()
- 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::testIsInstallable()
Tests the isInstallable method()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ ConfigImporterTest.php, line 525
Class
- ConfigImporterTest
- Tests importing configuration from files into active configuration.
Namespace
Drupal\KernelTests\Core\ConfigCode
public function testIsInstallable() : void {
$config_name = 'config_test.dynamic.isinstallable';
$this->assertFalse($this->container
->get('config.storage')
->exists($config_name));
\Drupal::state()->set('config_test.isinstallable', TRUE);
$this->installConfig([
'config_test',
]);
$this->assertTrue($this->container
->get('config.storage')
->exists($config_name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.