Skip to content

Commit 4619cd0

Browse files
committed
[HttpKernel] Fix broken mock
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 16caffd commit 4619cd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/CacheClearer/Psr6CacheClearerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ public function testClearPool()
3232
$pool = $this->createMock(CacheItemPoolInterface::class);
3333
$pool
3434
->expects($this->once())
35-
->method('clear');
35+
->method('clear')
36+
->willReturn(true)
37+
;
3638

37-
(new Psr6CacheClearer(['pool' => $pool]))->clearPool('pool');
39+
$this->assertTrue((new Psr6CacheClearer(['pool' => $pool]))->clearPool('pool'));
3840
}
3941

4042
public function testClearPoolThrowsExceptionOnUnreferencedPool()

0 commit comments

Comments
 (0)