function ThemeInstallerTest::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
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeInstallerTest.php, line 29 
Class
- ThemeInstallerTest
- Tests installing and uninstalling of themes.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function register(ContainerBuilder $container) {
  parent::register($container);
  // Some test methods involve ModuleHandler operations, which attempt to
  // rebuild and dump routes.
  $container->register('router.dumper', 'Drupal\\Core\\Routing\\NullMatcherDumper');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
