mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 09:43:13 +08:00
Added API test which checks short URLs with a domain are parsed as such
This commit is contained in:
@@ -34,6 +34,12 @@ class ShortUrlsFixture extends AbstractFixture
|
||||
));
|
||||
$manager->persist($customShortUrl);
|
||||
|
||||
$withDomainShortUrl = $this->setShortUrlDate(new ShortUrl(
|
||||
'https://blog.alejandrocelaya.com/2019/04/27/considerations-to-properly-use-open-source-software-projects/',
|
||||
ShortUrlMeta::createFromRawData(['domain' => 'example.com'])
|
||||
))->setShortCode('ghi789');
|
||||
$manager->persist($withDomainShortUrl);
|
||||
|
||||
$manager->flush();
|
||||
|
||||
$this->addReference('abc123_short_url', $abcShortUrl);
|
||||
|
||||
Reference in New Issue
Block a user