You are here

public function SystemFunctionsLegacyTest::testSystemRebuildModuleDataDeprecation in Drupal 8

@expectedDeprecation system_rebuild_module_data() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Instead, you should use \Drupal::service("extension.list.module")->getList(). See https://www.drupal.org/node/2709919

See also

system_rebuild_module_data()

File

core/modules/system/tests/src/Kernel/SystemFunctionsLegacyTest.php, line 25

Class

SystemFunctionsLegacyTest
Tests deprecated system module functions.

Namespace

Drupal\Tests\system\Kernel

Code

public function testSystemRebuildModuleDataDeprecation() {
  $list = system_rebuild_module_data();
  $this
    ->assertInstanceOf(Extension::class, $list['system']);
}