diff --git a/core/modules/migrate_drupal_ui/tests/src/Kernel/ProvidersExistTest.php b/core/modules/migrate_drupal_ui/tests/src/Kernel/ProvidersExistTest.php index 446a1a0..2bd3018 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Kernel/ProvidersExistTest.php +++ b/core/modules/migrate_drupal_ui/tests/src/Kernel/ProvidersExistTest.php @@ -3,6 +3,7 @@ namespace Drupal\Tests\migrate_drupal_ui\Kernel; Use Drupal\Component\Render\FormattableMarkup; +use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait; use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase; /** @@ -12,88 +13,17 @@ */ class ProvidersExistTest extends MigrateDrupalTestBase { + use FileSystemModuleDiscoveryDataProviderTrait; + /** * {@inheritdoc} */ - public static $modules = [ - 'action', - 'aggregator', - 'automated_cron', - 'ban', - 'basic_auth', - 'big_pipe', - 'block', - 'block_content', - 'block_place', - 'book', - 'breakpoint', - 'ckeditor', - 'color', - 'comment', - 'config', - 'config_translation', - 'contact', - 'content_moderation', - 'content_translation', - 'contextual', - 'datetime', - 'datetime_range', - 'dblog', - 'dynamic_page_cache', - 'editor', - 'entity_reference', - 'field', - 'field_layout', - 'field_ui', - 'file', - 'filter', - 'forum', - 'hal', - 'help', - 'history', - 'image', - 'inline_form_errors', - 'language', - 'layout_discovery', - 'link', - 'locale', - 'menu_link_content', - 'menu_ui', - 'migrate', - 'migrate_drupal', - 'migrate_drupal_ui', - 'node', - 'options', - 'outside_in', - 'page_cache', - 'path', - 'quickedit', - 'rdf', - 'responsive_image', - 'rest', - 'search', - 'serialization', - 'shortcut', - 'simpletest', - 'statistics', - 'syslog', - 'system', - 'taxonomy', - 'telephone', - 'text', - 'toolbar', - 'tour', - 'tracker', - 'update', - 'user', - 'views', - 'views_ui', - 'workflows', - 'provider_test', - ]; + public static $modules = ['system', 'user']; /** * Tests that providers exist for all source and destination plugins. + * + * @dataProvider coreModuleListDataProvider */ public function testProvidersExist() { /** @var \Drupal\migrate\Plugin\MigrationPluginManager $manager */