mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-18 16:29:56 +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),
|
'shortUrl' => $this->stringifier->stringify($shortUrl),
|
||||||
'longUrl' => $shortUrl->getLongUrl(),
|
'longUrl' => $shortUrl->getLongUrl(),
|
||||||
'dateCreated' => $shortUrl->getDateCreated()->toAtomString(),
|
'dateCreated' => $shortUrl->getDateCreated()->toAtomString(),
|
||||||
'nonBotVisitsCount' => $shortUrl->nonBotVisitsCount(),
|
|
||||||
'tags' => invoke($shortUrl->getTags(), '__toString'),
|
'tags' => invoke($shortUrl->getTags(), '__toString'),
|
||||||
'meta' => $this->buildMeta($shortUrl),
|
'meta' => $this->buildMeta($shortUrl),
|
||||||
'domain' => $shortUrl->getDomain(),
|
'domain' => $shortUrl->getDomain(),
|
||||||
|
|
|
@ -63,6 +63,11 @@ class PublishingUpdatesGeneratorTest extends TestCase
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'crawlable' => false,
|
'crawlable' => false,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'visitsSummary' => [
|
||||||
|
'total' => 0,
|
||||||
|
'nonBots' => 0,
|
||||||
|
'bots' => 0,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'visit' => [
|
'visit' => [
|
||||||
'referer' => '',
|
'referer' => '',
|
||||||
|
@ -139,6 +144,11 @@ class PublishingUpdatesGeneratorTest extends TestCase
|
||||||
'title' => $shortUrl->title(),
|
'title' => $shortUrl->title(),
|
||||||
'crawlable' => false,
|
'crawlable' => false,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'visitsSummary' => [
|
||||||
|
'total' => 0,
|
||||||
|
'nonBots' => 0,
|
||||||
|
'bots' => 0,
|
||||||
|
],
|
||||||
]], $update->payload);
|
]], $update->payload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue