You are here

protected function ContainerAwareEventDispatcherTest::createEventDispatcher in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\ContainerAwareEventDispatcherTest::createEventDispatcher()
2 calls to ContainerAwareEventDispatcherTest::createEventDispatcher()
ContainerAwareEventDispatcherTest::setUp in core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php
ContainerAwareEventDispatcherTest::testWorkaroundForPhpBug62976 in core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php
This bug affects:

File

core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php, line 48

Class

ContainerAwareEventDispatcherTest
Unit tests for the ContainerAwareEventDispatcher.

Namespace

Drupal\Tests\Component\EventDispatcher

Code

protected function createEventDispatcher() {
  $container = new Container();
  return new ContainerAwareEventDispatcher($container);
}