diff --git a/module/Core/test/Visit/VisitsStatsHelperTest.php b/module/Core/test/Visit/VisitsStatsHelperTest.php index b6ab393e..4f3ffee2 100644 --- a/module/Core/test/Visit/VisitsStatsHelperTest.php +++ b/module/Core/test/Visit/VisitsStatsHelperTest.php @@ -57,7 +57,7 @@ class VisitsStatsHelperTest extends TestCase $expectedCount * 3, ); $repo->expects($this->once())->method('countOrphanVisits')->with( - $this->isInstanceOf(VisitsCountFiltering::class) + $this->isInstanceOf(VisitsCountFiltering::class), )->willReturn($expectedCount); $this->em->expects($this->once())->method('getRepository')->with(Visit::class)->willReturn($repo); @@ -92,7 +92,7 @@ class VisitsStatsHelperTest extends TestCase )->willReturn($list); $repo2->method('countVisitsByShortCode')->with( $identifier, - $this->isInstanceOf(VisitsCountFiltering::class) + $this->isInstanceOf(VisitsCountFiltering::class), )->willReturn(1); $this->em->expects($this->exactly(2))->method('getRepository')->willReturnMap([ diff --git a/module/Core/test/Visit/VisitsTrackerTest.php b/module/Core/test/Visit/VisitsTrackerTest.php index 2653fd42..abdf8fb3 100644 --- a/module/Core/test/Visit/VisitsTrackerTest.php +++ b/module/Core/test/Visit/VisitsTrackerTest.php @@ -33,7 +33,7 @@ class VisitsTrackerTest extends TestCase public function trackPersistsVisitAndDispatchesEvent(string $method, array $args): void { $this->em->expects($this->once())->method('persist')->with( - $this->callback(fn (Visit $visit) => $visit->setId('1') !== null) + $this->callback(fn (Visit $visit) => $visit->setId('1') !== null), ); $this->em->expects($this->once())->method('flush'); $this->eventDispatcher->expects($this->once())->method('dispatch')->with( @@ -41,7 +41,6 @@ class VisitsTrackerTest extends TestCase ); $this->visitsTracker()->{$method}(...$args); - } /**