mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 00:47:25 -06:00
Fixed PublishingUpdatesGeneratorTest
This commit is contained in:
parent
99f28b569b
commit
936e5b3b86
@ -27,7 +27,6 @@ class ShortUrlDataTransformer implements DataTransformerInterface
|
||||
'shortUrl' => $this->stringifier->stringify($shortUrl),
|
||||
'longUrl' => $shortUrl->getLongUrl(),
|
||||
'dateCreated' => $shortUrl->getDateCreated()->toAtomString(),
|
||||
'nonBotVisitsCount' => $shortUrl->nonBotVisitsCount(),
|
||||
'tags' => invoke($shortUrl->getTags(), '__toString'),
|
||||
'meta' => $this->buildMeta($shortUrl),
|
||||
'domain' => $shortUrl->getDomain(),
|
||||
|
@ -63,6 +63,11 @@ class PublishingUpdatesGeneratorTest extends TestCase
|
||||
'title' => $title,
|
||||
'crawlable' => false,
|
||||
'forwardQuery' => true,
|
||||
'visitsSummary' => [
|
||||
'total' => 0,
|
||||
'nonBots' => 0,
|
||||
'bots' => 0,
|
||||
],
|
||||
],
|
||||
'visit' => [
|
||||
'referer' => '',
|
||||
@ -139,6 +144,11 @@ class PublishingUpdatesGeneratorTest extends TestCase
|
||||
'title' => $shortUrl->title(),
|
||||
'crawlable' => false,
|
||||
'forwardQuery' => true,
|
||||
'visitsSummary' => [
|
||||
'total' => 0,
|
||||
'nonBots' => 0,
|
||||
'bots' => 0,
|
||||
],
|
||||
]], $update->payload);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user