* the replacement no longer allows including code from uninstalled modules.
*
* @see https://www.drupal.org/node/3220952
*/
functionmodule_load_install($module){
@trigger_error('module_load_install() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead, you should use \Drupal::moduleHandler()->loadInclude($module, \'install\'). Note, the replacement no longer allows including code from uninstalled modules. See https://www.drupal.org/project/drupal/issues/2010380',E_USER_DEPRECATED);
@@ -22,14 +22,4 @@ public function testModuleLoadInclude() {
}
/**
* Test deprecation of module_load_install() function.
*/
publicfunctiontestModuleLoadInstall(){
$this->assertFalse(\Drupal::moduleHandler()->moduleExists('node'),'The Node module is not installed');
$this->expectDeprecation('module_load_install() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead, you should use \Drupal::moduleHandler()->loadInclude($module, \'install\'). Note, the replacement no longer allows including code from uninstalled modules. See https://www.drupal.org/project/drupal/issues/2010380');