10000 Fix mocks for ImmutableEventDispatcher. · symfony/symfony@5d3d385 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d3d385

Browse files
committed
Fix mocks for ImmutableEventDispatcher.
1 parent 1d71149 commit 5d3d385

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
C131
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ public function testGetListenersDelegates()
5454
$this->innerDispatcher->expects($this->once())
5555
->method('getListeners')
5656
->with('event')
57-
->willReturn('result');
57+
->willReturn(['result']);
5858

59-
$this->assertSame('result', $this->dispatcher->getListeners('event'));
59+
$this->assertSame(['result'], $this->dispatcher->getListeners('event'));
6060
}
6161

6262
public function testHasListenersDelegates()
6363
{
6464
$this->innerDispatcher->expects($this->once())
6565
->method('hasListeners')
6666
->with('event')
67-
->willReturn('result');
67+
->willReturn(true);
6868

69-
$this->assertSame('result', $this->dispatcher->hasListeners('event'));
69+
$this->assertTrue($this->dispatcher->hasListeners('event'));
7070
}
7171

7272
public function testAddListenerDisallowed()

0 commit comments

Comments
 (0)
0