Issue #2664292 by harings_rob, xjm, Spokje, claudiu.cristea, bircher,...
Issue #2664292 by harings_rob, xjm, Spokje, claudiu.cristea, bircher, dawehner, alexpott, klausi: Convert Module\InstallTest into a Kernel test
(cherry picked from commit 8a2f6514)
$this->expectExceptionMessage("Module name 'invalid_module_name_over_the_maximum_allowed_character_length' is over the maximum allowed length of 50 characters");
$this->moduleInstaller->install([$module_name]);
}
/**
* Tests that an exception is thrown when a module name is too long.
*
* We do this without checking dependencies for the module to install.
// Since for the UI, the submit callback uses FALSE, test that too.
$message=newFormattableMarkup('Exception thrown when enabling as if via the UI the module %name with a name length over the allowed maximum',['%name'=>$module_name]);
$this->expectExceptionMessage("Module name 'invalid_module_name_over_the_maximum_allowed_character_length' is over the maximum allowed length of 50 characters");