Added db tests to phpstan checks

This commit is contained in:
Alejandro Celaya 2022-10-24 20:14:48 +02:00
parent 85e18a4754
commit f459a99e7e
3 changed files with 3 additions and 2 deletions

View file

@ -109,7 +109,7 @@
],
"cs": "phpcs",
"cs:fix": "phpcbf",
"stan": "APP_ENV=test php vendor/bin/phpstan analyse module/*/src module/*/test module/*/config config docker/config data/migrations --level=8",
"stan": "APP_ENV=test php vendor/bin/phpstan analyse module/*/src module/*/test module/*/test-db module/*/config config docker/config data/migrations --level=8",
"test": [
"@parallel test:unit test:db",
"@parallel test:api test:cli"

View file

@ -22,6 +22,8 @@ class TagsPaginatorAdapterTest extends DatabaseTestCase
}
/**
* @param int<0, max> $offset
* @param int<0, max> $length
* @test
* @dataProvider provideFilters
*/

View file

@ -213,7 +213,6 @@ class VisitRepositoryTest extends DatabaseTestCase
{
$foo = 'foo';
/** @var ShortUrl $shortUrl */
$this->createShortUrlsAndVisits(false, [$foo]);
$this->getEntityManager()->flush();