mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Add logic to send visits to a matomo instance
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user