Added forwardQuery prop to the SHortUrl serialization

This commit is contained in:
Alejandro Celaya
2021-10-02 10:31:23 +02:00
parent 74a08b86ce
commit e21f9dd1fb
5 changed files with 32 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ class ShortUrlDataTransformer implements DataTransformerInterface
'domain' => $shortUrl->getDomain(),
'title' => $shortUrl->title(),
'crawlable' => $shortUrl->crawlable(),
'forwardQuery' => $shortUrl->forwardQuery(),
];
}

View File

@@ -60,6 +60,7 @@ class MercureUpdatesGeneratorTest extends TestCase
'domain' => null,
'title' => $title,
'crawlable' => false,
'forwardQuery' => true,
],
'visit' => [
'referer' => '',