mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 07:43:12 +08:00
Refactored short URL creation so that the long URL is part of the ShortUrlMeta
This commit is contained in:
@@ -79,7 +79,9 @@ class NotifyVisitToWebHooksTest extends TestCase
|
||||
$webhooks = ['foo', 'invalid', 'bar', 'baz'];
|
||||
$invalidWebhooks = ['invalid', 'baz'];
|
||||
|
||||
$find = $this->em->find(Visit::class, '1')->willReturn(new Visit(new ShortUrl(''), Visitor::emptyInstance()));
|
||||
$find = $this->em->find(Visit::class, '1')->willReturn(
|
||||
new Visit(ShortUrl::createEmpty(), Visitor::emptyInstance()),
|
||||
);
|
||||
$requestAsync = $this->httpClient->requestAsync(
|
||||
RequestMethodInterface::METHOD_POST,
|
||||
Argument::type('string'),
|
||||
|
||||
Reference in New Issue
Block a user