function SystemFunctionsLegacyTest::testSystemRebuildModuleDataDeprecation
@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
File
-
core/
modules/ system/ tests/ src/ Kernel/ SystemFunctionsLegacyTest.php, line 25
Class
- SystemFunctionsLegacyTest
- Tests deprecated system module functions.
Namespace
Drupal\Tests\system\KernelCode
public function testSystemRebuildModuleDataDeprecation() {
$list = system_rebuild_module_data();
$this->assertInstanceOf(Extension::class, $list['system']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.