Skip to content

Commit 52284d5

Browse files
committed
Remove unused public aliases in tests
1 parent 2cfdc48 commit 52284d5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/DependencyInjection/SentryExtensionTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use Sentry\Event;
88
use Sentry\Options;
99
use Sentry\SentryBundle\DependencyInjection\SentryExtension;
10-
use Sentry\SentryBundle\EventListener\ConsoleListener;
11-
use Sentry\SentryBundle\EventListener\RequestListener;
1210
use Symfony\Component\DependencyInjection\Alias;
1311
use Symfony\Component\DependencyInjection\Container;
1412
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -19,8 +17,6 @@
1917

2018
class SentryExtensionTest extends TestCase
2119
{
22-
private const REQUEST_LISTENER_TEST_PUBLIC_ALIAS = 'sentry.request_listener.public_alias';
23-
private const CONSOLE_LISTENER_TEST_PUBLIC_ALIAS = 'sentry.console_listener.public_alias';
2420
private const OPTIONS_TEST_PUBLIC_ALIAS = 'sentry.options.public_alias';
2521

2622
public function testDataProviderIsMappingTheRightNumberOfOptions(): void
@@ -299,8 +295,6 @@ private function getContainer(array $configuration = []): Container
299295
$containerBuilder->set('request_stack', $mockRequestStack);
300296
$containerBuilder->set('event_dispatcher', $mockEventDispatcher);
301297
$containerBuilder->setAlias(self::OPTIONS_TEST_PUBLIC_ALIAS, new Alias(Options::class, true));
302-
$containerBuilder->setAlias(self::REQUEST_LISTENER_TEST_PUBLIC_ALIAS, new Alias(RequestListener::class, true));
303-
$containerBuilder->setAlias(self::CONSOLE_LISTENER_TEST_PUBLIC_ALIAS, new Alias(ConsoleListener::class, true));
304298

305299
$beforeSend = new Definition('callable');
306300
$beforeSend->setFactory([CallbackMock::class, 'createCallback']);

0 commit comments

Comments
 (0)