You are here

public function ModuleHandlerTest::register in Zircon Profile 8

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

Registers test-specific services.

Extend this method in your test to register additional services. This method is called whenever the kernel is rebuilt.

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container: The service container to enhance.

Overrides KernelTestBase::register

See also

\Drupal\Tests\KernelTestBase::bootKernel()

File

core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php, line 45
Contains \Drupal\system\Tests\Extension\ModuleHandlerTest.

Class

ModuleHandlerTest
Tests ModuleHandler functionality.

Namespace

Drupal\Tests\system\Kernel\Extension

Code

public function register(ContainerBuilder $container) {
  parent::register($container);

  // Put a fake route bumper on the container to be called during uninstall.
  $container
    ->register('router.dumper', 'Drupal\\Core\\Routing\\NullMatcherDumper');
}