mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 08:18:24 +03:00
Fixed PublishingUpdatesGeneratorTest
This commit is contained in:
parent
99f28b569b
commit
936e5b3b86
2 changed files with 10 additions and 1 deletions
|
@ -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 a new issue