Skip to content

Commit d235724

Browse files
committed
minor symfony#38561 Fix tests typo (ScullWM)
This PR was merged into the 4.4 branch. Discussion ---------- Fix tests typo | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> While working on PSR 16 cache tests, I found this small glitch in the mocked `isHit` method Commits ------- 047ce05 Fix tests typo
2 parents 9982713 + 047ce05 commit d235724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnRestartSignalListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testWorkerStopsWhenMemoryLimitExceeded(?int $lastRestartTimeOffs
3030
{
3131
$cachePool = $this->createMock(CacheItemPoolInterface::class);
3232
$cacheItem = $this->createMock(CacheItemInterface::class);
33-
$cacheItem->expects($this->once())->method('isHIt')->willReturn(true);
33+
$cacheItem->expects($this->once())->method('isHit')->willReturn(true);
3434
$cacheItem->expects($this->once())->method('get')->willReturn(null === $lastRestartTimeOffset ? null : time() + $lastRestartTimeOffset);
3535
$cachePool->expects($this->once())->method('getItem')->willReturn($cacheItem);
3636

@@ -54,7 +54,7 @@ public function testWorkerDoesNotStopIfRestartNotInCache()
5454
{
5555
$cachePool = $this->createMock(CacheItemPoolInterface::class);
5656
$cacheItem = $this->createMock(CacheItemInterface::class);
57-
$cacheItem->expects($this->once())->method('isHIt')->willReturn(false);
57+
$cacheItem->expects($this->once())->method('isHit')->willReturn(false);
5858
$cacheItem->expects($this->never())->method('get');
5959
$cachePool->expects($this->once())->method('getItem')->willReturn($cacheItem);
6060

0 commit comments

Comments
 (0)