Add logic to send visits to a matomo instance

This commit is contained in:
Alejandro Celaya
2023-11-15 19:57:58 +01:00
parent 0edb3e5c2c
commit 9dbd15bc0c
13 changed files with 341 additions and 147 deletions

View File

@@ -159,7 +159,7 @@ class LocateVisitTest extends TestCase
{
$ipAddr = $originalIpAddress ?? $visit->getRemoteAddr();
$location = new Location('', '', '', '', 0.0, 0.0, '');
$event = UrlVisited::withOriginalIpAddress('123', $originalIpAddress);
$event = new UrlVisited('123', $originalIpAddress);
$this->em->expects($this->once())->method('find')->with(Visit::class, '123')->willReturn($visit);
$this->em->expects($this->once())->method('flush');