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.

1 call to DeprecatedModulesTestTrait::enableModules()
StateFileExists::testMigrationState in core/modules/migrate_drupal/tests/src/Kernel/StateFileExists.php
Tests that the migrate_drupal.yml files exist as needed.

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.