You are here

protected function ModuleHandlerTest::moduleInstaller in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php \Drupal\Tests\system\Kernel\Extension\ModuleHandlerTest::moduleInstaller()
  2. 10 core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php \Drupal\Tests\system\Kernel\Extension\ModuleHandlerTest::moduleInstaller()

Returns the ModuleInstaller.

Return value

\Drupal\Core\Extension\ModuleInstallerInterface

File

core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php, line 351

Class

ModuleHandlerTest
Tests ModuleHandler functionality.

Namespace

Drupal\Tests\system\Kernel\Extension

Code

protected function moduleInstaller() {
  return $this->container
    ->get('module_installer');
}