Read request's authority when tracking a visit and passed it down

This commit is contained in:
Alejandro Celaya
2019-10-04 21:36:54 +02:00
parent baf3093893
commit 636df2a736
4 changed files with 10 additions and 16 deletions

View File

@@ -41,7 +41,7 @@ class PixelActionTest extends TestCase
public function imageIsReturned(): void
{
$shortCode = 'abc123';
$this->urlShortener->shortCodeToUrl($shortCode)->willReturn(
$this->urlShortener->shortCodeToUrl($shortCode, '')->willReturn(
new ShortUrl('http://domain.com/foo/bar')
)->shouldBeCalledOnce();
$this->visitTracker->track(Argument::cetera())->shouldBeCalledOnce();