function DeprecatedModulesTestTrait::enableModules

Overrides \Drupal\KernelTests\KernelTestBase::enableModules().

For kernel tests this override will ensure that deprecated modules are not enabled if \Drupal\Tests\DeprecatedModulesTestTrait::$excludeDeprecated is set to true.

7 calls to DeprecatedModulesTestTrait::enableModules()
FieldTypePluginManagerTest::enableAllCoreModules in core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
Enable all core modules.
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.
MigrationLabelExistTest::testLabelExist in core/modules/migrate_drupal_ui/tests/src/Kernel/MigrationLabelExistTest.php
Tests that labels exist for all migrations.
MigrationProvidersExistTest::enableAllModules in core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php
Enable all available modules.

... See full list

File

core/tests/Drupal/Tests/DeprecatedModulesTestTrait.php, line 47

Class

DeprecatedModulesTestTrait
Provides methods remove deprecated modules from tests.

Namespace

Drupal\Tests

Code

protected function enableModules(array $modules) {
    parent::enableModules($this->removeDeprecatedModules($modules));
}

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