function ExceptionLoggingSubscriberTest::register
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/EventSubscriber/ExceptionLoggingSubscriberTest.php \Drupal\KernelTests\Core\EventSubscriber\ExceptionLoggingSubscriberTest::register()
Overrides KernelTestBase::register
File
-
core/
tests/ Drupal/ KernelTests/ Core/ EventSubscriber/ ExceptionLoggingSubscriberTest.php, line 87
Class
- ExceptionLoggingSubscriberTest
- Tests that HTTP exceptions are logged correctly.
Namespace
Drupal\KernelTests\Core\EventSubscriberCode
public function register(ContainerBuilder $container) : void {
parent::register($container);
$container->register($this->testLogServiceName, BufferingLogger::class)
->addTag('logger');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.