public function ComponentsKernelTestBase::register in Components! 8.2
Same name and namespace in other branches
- 3.x tests/src/Kernel/ComponentsKernelTestBase.php \Drupal\Tests\components\Kernel\ComponentsKernelTestBase::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
- tests/
src/ Kernel/ ComponentsKernelTestBase.php, line 16
Class
- ComponentsKernelTestBase
- Defines a base class for Components kernel testing.
Namespace
Drupal\Tests\components\KernelCode
public function register(ContainerBuilder $container) {
parent::register($container);
// Enable Twig debugging.
$parameters = $container
->getParameter('twig.config');
$parameters['debug'] = TRUE;
$container
->setParameter('twig.config', $parameters);
}