1
0
Fork 0
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:
Alejandro Celaya 2017-12-31 18:12:43 +01:00
parent e15b67b5dc
commit c202b3e518
2 changed files with 24 additions and 27 deletions
module/CLI/test/Command/Shortcode

View file

@ -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
);
}
}