[EventDispatcher] Dispatcher in stopEventPropagation test now registers correct listener
This commit is contained in:
parent
a90cd13fa4
commit
24c460afa6
@ -154,7 +154,7 @@ abstract class AbstractEventDispatcherTest extends TestCase
|
||||
// be executed
|
||||
// Manually set priority to enforce $this->listener to be called first
|
||||
$this->dispatcher->addListener('post.foo', array($this->listener, 'postFoo'), 10);
|
||||
$this->dispatcher->addListener('post.foo', array($otherListener, 'preFoo'));
|
||||
$this->dispatcher->addListener('post.foo', array($otherListener, 'postFoo'));
|
||||
$this->dispatcher->dispatch(self::postFoo);
|
||||
$this->assertTrue($this->listener->postFooInvoked);
|
||||
$this->assertFalse($otherListener->postFooInvoked);
|
||||
|
Reference in New Issue
Block a user