You are here

public function DefaultConfigTest::moduleListDataProvider in Drupal 10

A data provider that lists every module in core.

Also adds a deprecated module with config.

Return value

string[][] An array of module names to test, with both key and value being the name of the module.

File

core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php, line 173

Class

DefaultConfigTest
Tests that the installed config matches the default config.

Namespace

Drupal\KernelTests\Config

Code

public function moduleListDataProvider() {
  $modules_keyed = $this
    ->coreModuleListDataProvider();

  // Add a deprecated module with config.
  $modules_keyed['deprecated_module'] = [
    'deprecated_module',
  ];
  return $modules_keyed;
}