function ContainerAwareEventDispatcherTest::testInitialState
File
-
core/
tests/ Drupal/ Tests/ Component/ EventDispatcher/ ContainerAwareEventDispatcherTest.php, line 234
Class
- ContainerAwareEventDispatcherTest
- Unit tests for the ContainerAwareEventDispatcher.
Namespace
Drupal\Tests\Component\EventDispatcherCode
public function testInitialState() : void {
$this->assertEquals([], $this->dispatcher
->getListeners());
$this->assertFalse($this->dispatcher
->hasListeners(self::PRE_FOO));
$this->assertFalse($this->dispatcher
->hasListeners(self::POST_FOO));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.