File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 7
7
use Sentry \Integration \ExceptionListenerIntegration ;
8
8
use Sentry \Integration \IntegrationInterface ;
9
9
use Sentry \Integration \RequestIntegration ;
10
+ use Sentry \Monolog \Handler ;
10
11
use Sentry \SentryBundle \Command \SentryTestCommand ;
11
12
use Sentry \SentryBundle \DependencyInjection \SentryExtension ;
12
13
use Sentry \SentryBundle \EventListener \ConsoleListener ;
@@ -143,6 +144,13 @@ public function testIntegrationsListenersAreDisabledByDefault(): void
143
144
$ this ->assertNull ($ hub ->getIntegration (ExceptionListenerIntegration::class));
144
145
}
145
146
147
+ public function testContainerHasMonologHandlerRegistered (): void
148
+ {
149
+ $ container = $ this ->getContainer ();
150
+
151
+ $ this ->assertTrue ($ container ->hasDefinition (Handler::class));
152
+ }
153
+
146
154
private function getContainer (array $ configuration = []): ContainerBuilder
147
155
{
148
156
$ containerBuilder = new ContainerBuilder ();
You can’t perform that action at this time.
0 commit comments