mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Update to latest test utils
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
"phpunit/phpunit": "^11.4",
|
||||
"roave/security-advisories": "dev-master",
|
||||
"shlinkio/php-coding-standard": "~2.4.0",
|
||||
"shlinkio/shlink-test-utils": "^4.1.1",
|
||||
"shlinkio/shlink-test-utils": "^4.2",
|
||||
"symfony/var-dumper": "^7.1",
|
||||
"veewee/composer-run-parallel": "^1.4"
|
||||
},
|
||||
|
||||
@@ -16,8 +16,7 @@ class CrawlableShortCodesQueryTest extends DatabaseTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$em = $this->getEntityManager();
|
||||
$this->query = new CrawlableShortCodesQuery($em, $em->getClassMetadata(ShortUrl::class));
|
||||
$this->query = $this->createRepository(ShortUrl::class, CrawlableShortCodesQuery::class);
|
||||
}
|
||||
|
||||
#[Test]
|
||||
|
||||
@@ -22,8 +22,7 @@ class DeleteExpiredShortUrlsRepositoryTest extends DatabaseTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$em = $this->getEntityManager();
|
||||
$this->repository = new ExpiredShortUrlsRepository($em, $em->getClassMetadata(ShortUrl::class));
|
||||
$this->repository = $this->createRepository(ShortUrl::class, ExpiredShortUrlsRepository::class);
|
||||
}
|
||||
|
||||
#[Test]
|
||||
|
||||
@@ -37,7 +37,7 @@ class ShortUrlListRepositoryTest extends DatabaseTestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
$em = $this->getEntityManager();
|
||||
$this->repo = new ShortUrlListRepository($em, $em->getClassMetadata(ShortUrl::class));
|
||||
$this->repo = $this->createRepository(ShortUrl::class, ShortUrlListRepository::class);
|
||||
$this->relationResolver = new PersistenceShortUrlRelationResolver($em);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,7 @@ class VisitDeleterRepositoryTest extends DatabaseTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$em = $this->getEntityManager();
|
||||
$this->repo = new VisitDeleterRepository($em, $em->getClassMetadata(Visit::class));
|
||||
$this->repo = $this->createRepository(Visit::class, VisitDeleterRepository::class);
|
||||
}
|
||||
|
||||
#[Test]
|
||||
|
||||
@@ -25,8 +25,7 @@ class VisitIterationRepositoryTest extends DatabaseTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$em = $this->getEntityManager();
|
||||
$this->repo = new VisitIterationRepository($em, $em->getClassMetadata(Visit::class));
|
||||
$this->repo = $this->createRepository(Visit::class, VisitIterationRepository::class);
|
||||
}
|
||||
|
||||
#[Test, DataProvider('provideBlockSize')]
|
||||
|
||||
Reference in New Issue
Block a user