function PackageManagerKernelTestBase::enableModules
Enables modules for this test.
This method does not install modules fully. Services and hooks for the module are available, but the install process is not performed.
To install test modules outside of the testing environment, add
$settings['extension_discovery_scan_tests'] = TRUE;
to your settings.php.
Parameters
string[] $modules: A list of modules to install. Dependencies are not resolved; i.e., multiple modules have to be specified individually. The modules are only added to the active module list and loaded; i.e., their database schema is not installed. hook_install() is not invoked. A custom module weight is not applied.
Overrides KernelTestBase::enableModules
4 calls to PackageManagerKernelTestBase::enableModules()
- ComposerPatchesValidatorTest::testErrorDuringPreApplyWithHelp in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPatchesValidatorTest.php - Tests that validation errors can carry links to help.
- ComposerValidatorTest::testLinkToOnlineHelp in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerValidatorTest.php - Tests that invalid configuration links to online help, if available.
- ProjectInfoTest::testGetInstallableReleases in core/
modules/ package_manager/ tests/ src/ Kernel/ ProjectInfoTest.php - @covers ::getInstallableReleases[[api-linebreak]]
- RsyncValidatorTest::testPreCreateFailsIfRsyncNotFound in core/
modules/ package_manager/ tests/ src/ Kernel/ RsyncValidatorTest.php - Tests that the stage cannot be created if rsync is selected, but not found.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ PackageManagerKernelTestBase.php, line 142
Class
- PackageManagerKernelTestBase
- Base class for kernel tests of Package Manager's functionality.
Namespace
Drupal\Tests\package_manager\KernelCode
protected function enableModules(array $modules) : void {
parent::enableModules($modules);
$this->registerPostUpdateFunctions();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.