diff --git a/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php b/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php index 9abb496db6..31fb5a5f8f 100644 --- a/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php +++ b/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php @@ -9,6 +9,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\Event as SymfonyEvent; +use Symfony\Component\EventDispatcher\GenericEvent; use Drupal\Component\EventDispatcher\Event; /** @@ -165,6 +166,15 @@ public function testSymfonyEventDeprecation() { $dispatcher->dispatch(new SymfonyEvent()); } + /** + * Tests dispatching Symfony events with core's event dispatcher. + */ + public function testSymfonyEventDispatching() { + $container = new ContainerBuilder(); + $dispatcher = new ContainerAwareEventDispatcher($container, []); + $dispatcher->dispatch(new GenericEvent()); + } + /** * Tests deprecation notice for Symfony Event class inheritance. *