Fixed short codes DB length too short

This commit is contained in:
Alejandro Celaya
2018-08-01 20:40:24 +02:00
parent a79c1f580e
commit 3883ed15c4
3 changed files with 46 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ class ShortUrlRepositoryTest extends DatabaseTestCase
$bar = new ShortUrl();
$bar->setOriginalUrl('bar')
->setShortCode('bar')
->setShortCode('bar_very_long_text')
->setValidSince((new \DateTime())->add(new \DateInterval('P1M')));
$this->getEntityManager()->persist($bar);