function ConfigOtherModuleTest::installModule
Same name in other branches
- 9 core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php \Drupal\Tests\config\Functional\ConfigOtherModuleTest::installModule()
- 8.9.x core/modules/config/tests/src/Functional/ConfigOtherModuleTest.php \Drupal\Tests\config\Functional\ConfigOtherModuleTest::installModule()
- 11.x core/modules/config/tests/src/Kernel/ConfigOtherModuleTest.php \Drupal\Tests\config\Kernel\ConfigOtherModuleTest::installModule()
Installs a module.
Parameters
string $module: The module name.
3 calls to ConfigOtherModuleTest::installModule()
- ConfigOtherModuleTest::testInstallConfigEntityModuleFirst in core/
modules/ config/ tests/ src/ Kernel/ ConfigOtherModuleTest.php - Tests enabling the provider of the config entity type first.
- ConfigOtherModuleTest::testInstallOtherModuleFirst in core/
modules/ config/ tests/ src/ Kernel/ ConfigOtherModuleTest.php - Tests enabling the provider of the default configuration first.
- ConfigOtherModuleTest::testUninstall in core/
modules/ config/ tests/ src/ Kernel/ ConfigOtherModuleTest.php - Tests uninstalling Node module removes views which are dependent on it.
File
-
core/
modules/ config/ tests/ src/ Kernel/ ConfigOtherModuleTest.php, line 128
Class
- ConfigOtherModuleTest
- Tests default configuration provided by a module that does not own it.
Namespace
Drupal\Tests\config\KernelCode
protected function installModule(string $module) : void {
$this->container
->get('module_installer')
->install([
$module,
]);
$this->container = \Drupal::getContainer();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.