function CKEditor5PluginManagerTest::enableModules
Same name and namespace in other branches
- 11.x core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php \Drupal\Tests\ckeditor5\Kernel\CKEditor5PluginManagerTest::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
6 calls to CKEditor5PluginManagerTest::enableModules()
- CKEditor5PluginManagerTest::testAutomaticLinkDecoratorsDisallowed in core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php - @covers \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::validateCKEditor5Aspects
- CKEditor5PluginManagerTest::testEnabledPlugins in core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php - Tests the enabling of plugins.
- CKEditor5PluginManagerTest::testExternalLinkAutomaticLinkDecoratorDisallowed in core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php - @covers \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::validateCKEditor5Aspects
- CKEditor5PluginManagerTest::testPluginSupportingElement in core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php - Tests the logic of findPluginSupportingElement.
- CKEditor5PluginManagerTest::testProvidedElements in core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php - Tests the parsing of CKEditor 5 plugin element config.
File
-
core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor5PluginManagerTest.php, line 91
Class
- CKEditor5PluginManagerTest
- Tests different ways of enabling CKEditor 5 plugins.
Namespace
Drupal\Tests\ckeditor5\KernelCode
protected function enableModules(array $modules) {
parent::enableModules($modules);
// Ensure the CKEditor 5 plugin manager instance on the test reflects the
// status after the module is installed.
$this->manager = $this->container
->get('plugin.manager.ckeditor5.plugin');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.