mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Make it impossible to create a short URL with an empty long URL
This commit is contained in:
@@ -43,7 +43,7 @@ class SingleStepCreateShortUrlActionTest extends TestCase
|
||||
])->withAttribute(ApiKey::class, $apiKey);
|
||||
$this->urlShortener->expects($this->once())->method('shorten')->with(
|
||||
ShortUrlCreation::fromRawData(['apiKey' => $apiKey, 'longUrl' => 'http://foobar.com']),
|
||||
)->willReturn(ShortUrl::createEmpty());
|
||||
)->willReturn(ShortUrl::createFake());
|
||||
|
||||
$resp = $this->action->handle($request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user