| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 30 | 
| Code Lines | 23 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 25 | public function visitIsProperlySerializedIntoUpdate(): void  | 
            ||
| 26 |     { | 
            ||
| 27 |         $shortUrl = new ShortUrl(''); | 
            ||
| 28 | $visit = new Visit($shortUrl, Visitor::emptyInstance());  | 
            ||
| 29 | |||
| 30 | $update = $this->generator->newVisitUpdate($visit);  | 
            ||
| 31 | |||
| 32 | $this->assertEquals(['https://shlink.io/new_visit'], $update->getTopics());  | 
            ||
| 33 | $this->assertEquals([  | 
            ||
| 34 | 'shortUrl' => [  | 
            ||
| 35 | 'shortCode' => $shortUrl->getShortCode(),  | 
            ||
| 36 | 'shortUrl' => 'http:/' . $shortUrl->getShortCode(),  | 
            ||
| 37 | 'longUrl' => '',  | 
            ||
| 38 | 'dateCreated' => $shortUrl->getDateCreated()->toAtomString(),  | 
            ||
| 39 | 'visitsCount' => 0,  | 
            ||
| 40 | 'tags' => [],  | 
            ||
| 41 | 'meta' => [  | 
            ||
| 42 | 'validSince' => null,  | 
            ||
| 43 | 'validUntil' => null,  | 
            ||
| 44 | 'maxVisits' => null,  | 
            ||
| 45 | ],  | 
            ||
| 46 | 'domain' => null,  | 
            ||
| 47 | ],  | 
            ||
| 48 | 'visit' => [  | 
            ||
| 49 | 'referer' => '',  | 
            ||
| 50 | 'userAgent' => '',  | 
            ||
| 51 | 'visitLocation' => null,  | 
            ||
| 52 | 'date' => $visit->getDate()->toAtomString(),  | 
            ||
| 53 | ],  | 
            ||
| 54 | ], json_decode($update->getData()));  | 
            ||
| 55 | }  | 
            ||
| 57 |