You are here

protected function ModuleHandlerTest::moduleHandler in Drupal 10

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

Returns the ModuleHandler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

5 calls to ModuleHandlerTest::moduleHandler()
ModuleHandlerTest::testDependencyResolution in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests dependency resolution.
ModuleHandlerTest::testModuleList in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
The basic functionality of retrieving enabled modules.
ModuleHandlerTest::testProfileAllDependencies in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests that a profile can supply only real dependencies.
ModuleHandlerTest::testUninstallContentDependency in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests uninstalling a module that has content.
ModuleHandlerTest::testUninstallProfileDependency in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests uninstalling a module installed by a profile.

File

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

Class

ModuleHandlerTest
Tests ModuleHandler functionality.

Namespace

Drupal\Tests\system\Kernel\Extension

Code

protected function moduleHandler() {
  return $this->container
    ->get('module_handler');
}