mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 02:10:18 -06:00
Updated test utils lib
This commit is contained in:
parent
dd5bce9694
commit
a198484ab6
@ -74,7 +74,7 @@
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"roave/security-advisories": "dev-master",
|
||||
"shlinkio/php-coding-standard": "~2.2.0",
|
||||
"shlinkio/shlink-test-utils": "^2.5",
|
||||
"shlinkio/shlink-test-utils": "^3.0",
|
||||
"symfony/var-dumper": "^6.0",
|
||||
"veewee/composer-run-parallel": "^1.1"
|
||||
},
|
||||
|
@ -53,7 +53,7 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito
|
||||
}
|
||||
|
||||
$apiKey = $filtering?->apiKey();
|
||||
$this->applySpecification($subQb, new WithInlinedApiKeySpecsEnsuringJoin($apiKey, 'shortUrls'), 't');
|
||||
$this->applySpecification($subQb, new WithInlinedApiKeySpecsEnsuringJoin($apiKey), 't');
|
||||
|
||||
$subQuery = $subQb->getQuery();
|
||||
$subQuerySql = $subQuery->getSQL();
|
||||
|
@ -21,7 +21,7 @@ class DomainRepositoryTest extends DatabaseTestCase
|
||||
{
|
||||
private DomainRepository $repo;
|
||||
|
||||
protected function beforeEach(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->repo = $this->getEntityManager()->getRepository(Domain::class);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ class ShortUrlRepositoryTest extends DatabaseTestCase
|
||||
private ShortUrlRepository $repo;
|
||||
private PersistenceShortUrlRelationResolver $relationResolver;
|
||||
|
||||
public function beforeEach(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->repo = $this->getEntityManager()->getRepository(ShortUrl::class);
|
||||
$this->relationResolver = new PersistenceShortUrlRelationResolver($this->getEntityManager());
|
||||
|
@ -27,7 +27,7 @@ class TagRepositoryTest extends DatabaseTestCase
|
||||
private TagRepository $repo;
|
||||
private PersistenceShortUrlRelationResolver $relationResolver;
|
||||
|
||||
protected function beforeEach(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->repo = $this->getEntityManager()->getRepository(Tag::class);
|
||||
$this->relationResolver = new PersistenceShortUrlRelationResolver($this->getEntityManager());
|
||||
|
@ -38,7 +38,7 @@ class VisitRepositoryTest extends DatabaseTestCase
|
||||
private VisitRepository $repo;
|
||||
private PersistenceShortUrlRelationResolver $relationResolver;
|
||||
|
||||
protected function beforeEach(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->repo = $this->getEntityManager()->getRepository(Visit::class);
|
||||
$this->relationResolver = new PersistenceShortUrlRelationResolver($this->getEntityManager());
|
||||
|
@ -16,7 +16,7 @@ class TagsPaginatorAdapterTest extends DatabaseTestCase
|
||||
{
|
||||
private TagRepository $repo;
|
||||
|
||||
protected function beforeEach(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->repo = $this->getEntityManager()->getRepository(Tag::class);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user