mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Added db tests to phpstan checks
This commit is contained in:
parent
85e18a4754
commit
f459a99e7e
3 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -22,6 +22,8 @@ class TagsPaginatorAdapterTest extends DatabaseTestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @param int<0, max> $offset
|
||||
* @param int<0, max> $length
|
||||
* @test
|
||||
* @dataProvider provideFilters
|
||||
*/
|
||||
|
|
|
@ -213,7 +213,6 @@ class VisitRepositoryTest extends DatabaseTestCase
|
|||
{
|
||||
$foo = 'foo';
|
||||
|
||||
/** @var ShortUrl $shortUrl */
|
||||
$this->createShortUrlsAndVisits(false, [$foo]);
|
||||
$this->getEntityManager()->flush();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue