Updated setting short URL tags so that it accepts providing the domain

This commit is contained in:
Alejandro Celaya
2020-02-01 22:59:21 +01:00
parent 5d1d9dcac3
commit 6858dc4785
5 changed files with 11 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ class ShortUrlServiceTest extends TestCase
$tagRepo->findOneBy(['name' => 'bar'])->willReturn(null)->shouldBeCalledOnce();
$this->em->getRepository(Tag::class)->willReturn($tagRepo->reveal());
$this->service->setTagsByShortCode($shortCode, ['foo', 'bar']);
$this->service->setTagsByShortCode(new ShortUrlIdentifier($shortCode), ['foo', 'bar']);
}
/** @test */