Updated CLI command to create short URLs so that it respects configs for short code length

This commit is contained in:
Alejandro Celaya
2020-02-18 20:34:48 +01:00
parent 51e130c7a0
commit 33a404f051
5 changed files with 19 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ class GenerateShortUrlCommandTest extends TestCase
public function setUp(): void
{
$this->urlShortener = $this->prophesize(UrlShortener::class);
$command = new GenerateShortUrlCommand($this->urlShortener->reveal(), self::DOMAIN_CONFIG);
$command = new GenerateShortUrlCommand($this->urlShortener->reveal(), self::DOMAIN_CONFIG, 5);
$app = new Application();
$app->add($command);
$this->commandTester = new CommandTester($command);