87 calls to KernelTestBase::enableModules()

CacheableMetadataCalculationTest::testCacheableMetadataCalculation in core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php
Tests that cacheability metadata is only calculated when needed.
CKEditor4to5UpgradeCompletenessTest::testButtonsWithTestOnlyModule in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests that the test-only CKEditor 4 module does not have an upgrade path.
CKEditor4to5UpgradeCompletenessTest::testLyingUpgradePluginForCKEditor4Button in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests detecting a lying upgrade plugin cke4_button annotation.
CKEditor4to5UpgradeCompletenessTest::testLyingUpgradePluginForCKEditor4PluginSettings in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests detecting a lying upgrade plugin cke4_plugin_settings annotation.
CKEditor4to5UpgradeCompletenessTest::testLyingUpgradePluginForCKEditor5ConfigurableSubsetPlugin in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests detecting lying cke5_plugin_elements_subset_configuration annotation.
CKEditor4to5UpgradeCompletenessTest::testOnlyOneUpgradePluginAllowedPerCKEditor4Button in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests that only one plugin can provide an upgrade path for a button.
CKEditor4to5UpgradeCompletenessTest::testOnlyOneUpgradePluginAllowedPerCKEditor4PluginSettings in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests that only one plugin can provide an upgrade path for plugin settings.
CKEditor4to5UpgradeCompletenessTest::testOnlyOneUpgradePluginAllowedPerCKEditor5ConfigurableSubsetPlugin in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests that only one plugin can provide an upgrade path for a subset plugin.
CKEditor4to5UpgradeCompletenessTest::testSettingsWithTestOnlyModule in core/modules/ckeditor5/tests/src/Kernel/CKEditor4to5UpgradeCompletenessTest.php
Tests that the test-only CKEditor 4 module does not have an upgrade path.
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.
CKEditor5PluginManagerTest::testProvidedElementsInvalidElementSubset in core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php
Tests detection of invalid CKEditor5PluginElementsSubsetInterface classes.
CKEditorPluginManagerTest::testCssFiles in core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
Tests the iframe instance CSS files of plugins.
CKEditorPluginManagerTest::testEnabledPlugins in core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
Tests the enabling of plugins.
CKEditorTest::testBuildContentsCssJSSetting in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests CKEditor::buildContentsCssJSSetting().
CKEditorTest::testBuildToolbarJSSetting in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests CKEditor::buildToolbarJSSetting().
CKEditorTest::testGetJSSettings in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests CKEditor::getJSSettings().
CKEditorTest::testJSTranslation in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests that CKEditor plugins participate in JS translation.
CKEditorTest::testLanguages in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests language list availability in CKEditor.
CommentDepthTest::testCommentDepth in core/modules/comment/tests/src/Kernel/Views/CommentDepthTest.php
Test the comment depth.
CommentLinksTest::testLinkReply in core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php
Tests the comment reply link.
ConfigEntityUpdaterTest::testUpdateException in core/tests/Drupal/KernelTests/Core/Config/Entity/ConfigEntityUpdaterTest.php
@covers ::update
ConfigInstallTest::testCollectionInstallationCollections in core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
Tests config objects in collections are installed as expected.
ConfigInstallTest::testCollectionInstallationNoCollections in core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
Tests that collections are ignored if the event does not return anything.
ConfigInstallTest::testModuleInstallation in core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
Tests module installation.
ContentNegotiationRoutingTest::testFullNegotiation in core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
Full negotiation by header only.
EditorManagerTest::testManager in core/modules/editor/tests/src/Kernel/EditorManagerTest.php
Tests the configurable text editor manager.
EditorSelectionTest::testTextWysiwyg in core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
Tests a textual field with varying text format compatibility.
EntityContentBaseTest::testUntranslatable in core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php
Tests that translation destination fails for untranslatable entities.
EntityDisplayTest::testComponentDependencies in core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Tests components dependencies additions.
EntityDisplayTest::testOnDependencyRemoval in core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Tests \Drupal\Core\Entity\EntityDisplayBase::onDependencyRemoval().
EntityFormDisplayTest::testOnDependencyRemoval in core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
Tests \Drupal\Core\Entity\EntityDisplayBase::onDependencyRemoval().
EntityKernelTestBase::installModule in core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php
Installs a module and refreshes services.
EntityQueryTest::testBaseFieldMultipleColumns in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
Tests base fields with multiple columns.
EntityTypeConstraintsTest::testConstraintDefinition in core/tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintsTest.php
Tests defining entity constraints via entity type annotations and hooks.
EntityViewBuilderTest::testViewField in core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
Tests EntityViewBuilder::viewField() language awareness.
FieldDefinitionIntegrityTest::testFieldPluginDefinitionAvailability in core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php
Tests to load field plugin definitions used in core's existing entities.
FieldDefinitionIntegrityTest::testFieldPluginDefinitionIntegrity in core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php
Tests the integrity of field plugin definitions.
FieldItemSerializationTest::testCustomBooleanNormalization in core/modules/serialization/tests/src/Kernel/FieldItemSerializationTest.php
Tests a format-agnostic normalizer.
FieldItemSerializationTest::testCustomBooleanNormalization in core/modules/hal/tests/src/Kernel/serialization/FieldItemSerializationTest.php
Tests a format-agnostic normalizer.
FieldTypePluginManagerTest::enableAllCoreModules in core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
Enable all core modules.
HelpEmptyPageTest::testEmptyHookHelp in core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php
Ensures that no URL generator is called on a page without hook_help().
KernelTestBaseTest::testContainerIsolation in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
Tests whether the fixture allows us to install modules and configuration.
KernelTestBaseTest::testKernelTestBaseInstallSchema in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
Tests the deprecation of ::installSchema with the tables key_value(_expire).
KernelTestBaseTest::testRegister in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::register
KernelTestBaseTest::testRender in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::render
KernelTestBaseTest::testRenderWithTheme in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::render
KernelTestBaseTest::testSubsequentContainerIsolation in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
Tests whether the fixture can re-install modules and configuration.
KernelTestBaseTest::testVarDump in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
Tests the dump() function provided by the var-dumper Symfony component.
LanguageConfigOverrideInstallTest::testLanguageConfigOverrideInstall in core/modules/language/tests/src/Kernel/LanguageConfigOverrideInstallTest.php
Tests the configuration events are not fired during install of overrides.
MediaLibraryAddFormTest::testDifferentAddForm in core/modules/media_library/tests/src/Kernel/MediaLibraryAddFormTest.php
Tests overwriting of the add form.
MigrateDrupal6AuditIdsTest::testNodeGrantsIdConflicts in core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
Tests ID conflicts for inaccessible nodes.
MigrateDrupal7AuditIdsTest::testNodeGrantsIdConflicts in core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
Tests ID conflicts for inaccessible nodes.
MigrateEntityContentBaseTest::testBundleFallbackForStub in core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php
Tests bundle is properly provided for stubs without bundle support.
MigrateEntityContentBaseTest::testEmptyDestinations in core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php
Tests empty destinations.
MigrateEntityContentBaseTest::testEntityWithStringId in core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php
Tests creation of ID columns table with definitions taken from entity type.
MigrateNodeDeriverTest::testTranslations in core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php
Tests node translation migrations with translation enabled.
MigrateNodeDeriverTest::testTranslations in core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php
Tests node translation migrations with translation enabled.
MigrateSearchPageTest::testSearchPage in core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php
Tests migration of search status and settings to search page entity.
MigrateSearchPageTest::testUserSearchCreate in core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php
Tests that a search page will be created if it does not exist.
MigrationLabelExistTest::testLabelExist in core/modules/migrate_drupal_ui/tests/src/Kernel/MigrationLabelExistTest.php
Tests that labels exist for all migrations.
MigrationPluginListTest::testGetDefinitions in core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php
@covers ::getDefinitions
MigrationProvidersExistTest::enableAllModules in core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php
Enable all available modules.
MigrationProvidersExistTest::testSourceProvider in core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php
Tests that a missing source_module property raises an exception.
ModuleHandlerTest::testDependencyResolution in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests dependency resolution.
ModuleHandlerTest::testProfileAllDependencies in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests that a profile can supply only real dependencies.
ModuleHandlerTest::testUninstallContentDependency in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests uninstalling a module that has content.
ModuleHandlerTest::testUninstallProfileDependency in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests uninstalling a module installed by a profile.
ModuleTest::testLoadFunctions in core/modules/views/tests/src/Kernel/ModuleTest.php
Tests the load wrapper/helper functions.
NodeAccessTest::testUnsupportedOperation in core/modules/node/tests/src/Kernel/NodeAccessTest.php
Tests operations not supported by node grants.
PageRenderTest::testHookPageAlter in core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
Tests hook_page_attachments_alter() exceptions.
PageRenderTest::testHookPageAttachmentsExceptions in core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
Tests hook_page_attachments() exceptions.
PageRenderTest::testHtmlRendererAttachmentsRenderContext in core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
Tests HtmlRenderer::invokePageAttachmentHooks in a render context.
QueryTest::testConditionOperatorArgumentsSQLInjection in core/tests/Drupal/KernelTests/Core/Database/QueryTest.php
Tests SQL injection via condition operator.
ServiceDestructionTest::testDestructionUnused in core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php
Verifies that services are not unnecessarily destructed when not used.
ServiceDestructionTest::testDestructionUsed in core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php
Verifies that services are destructed when used.
StateFileExistsTest::testMigrationState in core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php
Tests that the migrate_drupal.yml files exist as needed.
StringFormatterTest::testLinkToContentForEntitiesWithNoCanonicalPath in core/modules/field/tests/src/Kernel/String/StringFormatterTest.php
Test "link_to_entity" feature on fields which are added to config entity.
TwigIncludeTest::testTemplateInclusion in core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php
Tests template inclusion extension checking.
UpdateReportTest::testTemplatePreprocessUpdateFetchErrorMessageWithDblog in core/modules/update/tests/src/Kernel/UpdateReportTest.php
Tests the error message when failing to fetch data with dblog enabled.
UsageTest::testFileUsageWithEntityTranslation in core/modules/file/tests/src/Kernel/UsageTest.php
Tests file usage with translated entities.
UserRoleDeleteTest::testDependenciesRemoval in core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php
Tests the removal of user role dependencies.
ViewsModerationStateSortTest::testSortBaseTable in core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php
Tests sorting with a standard data base table.
ViewsModerationStateSortTest::testSortRevisionBaseTable in core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php
Tests sorting with the revision base table.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.