[EventDispatcher] Dispatcher in stopEventPropagation test now registers correct listener

This commit is contained in:
Peter Orosz 2018-04-05 16:08:40 +02:00 committed by Christophe Coevoet
parent a90cd13fa4
commit 24c460afa6

View File

@ -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);