8000 minor #26814 [EventDispatcher] Fix wrong listener in stopEventPropaga… · symfony/symfony@c415e4c · GitHub
[go: up one dir, main page]

Skip to content

Commit c415e4c

Browse files
committed
minor #26814 [EventDispatcher] Fix wrong listener in stopEventPropagation test (Peter Orosz)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #26814). Discussion ---------- [EventDispatcher] Fix wrong listener in stopEventPropagation test | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #26810 | License | MIT | Doc PR | Commits ------- 24c460a [EventDispatcher] Dispatcher in stopEventPropagation test now registers correct listener
2 parents a90cd13 + 24c460a commit c415e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testStopEventPropagation()
154154
// be executed
155155
// Manually set priority to enforce $this->listener to be called first
156156
$this->dispatcher->addListener('post.foo', array($this->listener, 'postFoo'), 10);
157-
$this->dispatcher->addListener('post.foo', array($otherListener, 'preFoo'));
157+
$this->dispatcher->addListener('post.foo', array($otherListener, 'postFoo'));
158158
$this->dispatcher->dispatch(self::postFoo);
159159
$this->assertTrue($this->listener->postFooInvoked);
160160
$this->assertFalse($otherListener->postFooInvoked);

0 commit comments

Comments
 (0)
0