mirror of
https://github.com/shlinkio/shlink.git
synced 2025-05-03 13:55:21 +03:00
Created chainIpLocationResolver
This commit is contained in:
parent
d152e2ef9a
commit
fd6d180eba
47 changed files with 288 additions and 176 deletions
module/CLI/test/Command/ShortUrl
|
@ -47,7 +47,7 @@ class GenerateShortcodeCommandTest extends TestCase
|
|||
->willReturn(
|
||||
(new ShortUrl(''))->setShortCode('abc123')
|
||||
)
|
||||
->shouldBeCalledTimes(1);
|
||||
->shouldBeCalledOnce();
|
||||
|
||||
$this->commandTester->execute([
|
||||
'command' => 'shortcode:generate',
|
||||
|
@ -63,7 +63,7 @@ class GenerateShortcodeCommandTest extends TestCase
|
|||
public function exceptionWhileParsingLongUrlOutputsError()
|
||||
{
|
||||
$this->urlShortener->urlToShortCode(Argument::cetera())->willThrow(new InvalidUrlException())
|
||||
->shouldBeCalledTimes(1);
|
||||
->shouldBeCalledOnce();
|
||||
|
||||
$this->commandTester->execute([
|
||||
'command' => 'shortcode:generate',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue