function DeprecatedModulesTestTrait::removeDeprecatedModules
Removes deprecated modules from the provided modules.list.
Parameters
array $modules: Array of modules names.
Return value
array The filtered $modules array.
7 calls to DeprecatedModulesTestTrait::removeDeprecatedModules()
- DeprecatedModulesTestTrait::enableModules in core/
tests/ Drupal/ Tests/ DeprecatedModulesTestTrait.php - Overrides \Drupal\KernelTests\KernelTestBase::enableModules().
- DestinationCategoryTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ Plugin/ migrate/ DestinationCategoryTest.php - HelpTopicsSyntaxTest::testHelpTopics in core/
modules/ help_topics/ tests/ src/ Functional/ HelpTopicsSyntaxTest.php - Tests that all Core help topics can be rendered and have good syntax.
- MigrateDrupal6AuditIdsTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6AuditIdsTest.php - MigrateDrupal7AuditIdsTest::setUp in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d7/ MigrateDrupal7AuditIdsTest.php
File
-
core/
tests/ Drupal/ Tests/ DeprecatedModulesTestTrait.php, line 36
Class
- DeprecatedModulesTestTrait
- Provides methods remove deprecated modules from tests.
Namespace
Drupal\TestsCode
protected function removeDeprecatedModules(array $modules) {
return $this->excludeDeprecated ? array_diff($modules, $this->deprecatedModules) : $modules;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.