mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Simplified transactional URL shortening
This commit is contained in:
@@ -72,7 +72,7 @@ class SingleStepCreateShortUrlActionTest extends TestCase
|
||||
'longUrl' => 'http://foobar.com',
|
||||
]);
|
||||
$findApiKey = $this->apiKeyService->check('abc123')->willReturn(true);
|
||||
$generateShortCode = $this->urlShortener->urlToShortCode(
|
||||
$generateShortCode = $this->urlShortener->shorten(
|
||||
Argument::that(function (string $argument): string {
|
||||
Assert::assertEquals('http://foobar.com', $argument);
|
||||
return $argument;
|
||||
|
||||
Reference in New Issue
Block a user