mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 00:03:12 +08:00
Improved public API in ShortUrl entity, reducing anemic model
This commit is contained in:
@@ -45,8 +45,7 @@ class GenerateShortcodeCommandTest extends TestCase
|
||||
{
|
||||
$this->urlShortener->urlToShortCode(Argument::cetera())
|
||||
->willReturn(
|
||||
(new ShortUrl())->setShortCode('abc123')
|
||||
->setLongUrl('')
|
||||
(new ShortUrl(''))->setShortCode('abc123')
|
||||
)
|
||||
->shouldBeCalledTimes(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user