mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Allowed to provide the domain when creating a short URL
This commit is contained in:
@@ -40,6 +40,12 @@ class ShortUrlsFixture extends AbstractFixture
|
||||
))->setShortCode('ghi789');
|
||||
$manager->persist($withDomainShortUrl);
|
||||
|
||||
$withDomainAndSlugShortUrl = $this->setShortUrlDate(new ShortUrl(
|
||||
'https://google.com',
|
||||
ShortUrlMeta::createFromRawData(['domain' => 'some-domain.com'])
|
||||
))->setShortCode('custom-with-domain');
|
||||
$manager->persist($withDomainAndSlugShortUrl);
|
||||
|
||||
$manager->flush();
|
||||
|
||||
$this->addReference('abc123_short_url', $abcShortUrl);
|
||||
|
||||
Reference in New Issue
Block a user