function DevelTwigExtensionTest::register

Same name in other branches
  1. 4.x tests/src/Kernel/DevelTwigExtensionTest.php \Drupal\Tests\devel\Kernel\DevelTwigExtensionTest::register()

Overrides KernelTestBase::register

File

tests/src/Kernel/DevelTwigExtensionTest.php, line 62

Class

DevelTwigExtensionTest
Tests Twig extensions.

Namespace

Drupal\Tests\devel\Kernel

Code

public function register(ContainerBuilder $container) : void {
    parent::register($container);
    $parameters = $container->getParameter('twig.config');
    $parameters['debug'] = TRUE;
    $container->setParameter('twig.config', $parameters);
}