mirror of
https://github.com/shlinkio/shlink.git
synced 2025-05-07 07:44:57 +03:00
Improved GenerateShortcodeCommand by using SymfonyStyle
This commit is contained in:
parent
e15b67b5dc
commit
c202b3e518
2 changed files with 24 additions and 27 deletions
module/CLI/test/Command/Shortcode
|
@ -65,8 +65,9 @@ class GenerateShortcodeCommandTest extends TestCase
|
|||
'longUrl' => 'http://domain.com/invalid',
|
||||
]);
|
||||
$output = $this->commandTester->getDisplay();
|
||||
$this->assertTrue(
|
||||
strpos($output, 'Provided URL "http://domain.com/invalid" is invalid. Try with a different one.') === 0
|
||||
$this->assertContains(
|
||||
'Provided URL "http://domain.com/invalid" is invalid.',
|
||||
$output
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue