Extracted tags filtering params to a DTO

This commit is contained in:
Alejandro Celaya
2022-01-06 09:50:43 +01:00
parent 4b90cf93d3
commit e998c8434d
6 changed files with 55 additions and 20 deletions

View File

@@ -74,7 +74,7 @@ class TagRepositoryTest extends DatabaseTestCase
$this->getEntityManager()->persist(Visit::forValidShortUrl($shortUrl2, Visitor::emptyInstance()));
$this->getEntityManager()->flush();
$result = $this->repo->findTagsWithInfo();
$result = $this->repo->findTagsWithInfo(); // TODO Test with some filters
self::assertCount(4, $result);
self::assertEquals(0, $result[0]->shortUrlsCount());