mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added db tests to phpstan checks
This commit is contained in:
parent
85e18a4754
commit
f459a99e7e
@ -109,7 +109,7 @@
|
|||||||
],
|
],
|
||||||
"cs": "phpcs",
|
"cs": "phpcs",
|
||||||
"cs:fix": "phpcbf",
|
"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": [
|
"test": [
|
||||||
"@parallel test:unit test:db",
|
"@parallel test:unit test:db",
|
||||||
"@parallel test:api test:cli"
|
"@parallel test:api test:cli"
|
||||||
|
@ -22,6 +22,8 @@ class TagsPaginatorAdapterTest extends DatabaseTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param int<0, max> $offset
|
||||||
|
* @param int<0, max> $length
|
||||||
* @test
|
* @test
|
||||||
* @dataProvider provideFilters
|
* @dataProvider provideFilters
|
||||||
*/
|
*/
|
||||||
|
@ -213,7 +213,6 @@ class VisitRepositoryTest extends DatabaseTestCase
|
|||||||
{
|
{
|
||||||
$foo = 'foo';
|
$foo = 'foo';
|
||||||
|
|
||||||
/** @var ShortUrl $shortUrl */
|
|
||||||
$this->createShortUrlsAndVisits(false, [$foo]);
|
$this->createShortUrlsAndVisits(false, [$foo]);
|
||||||
$this->getEntityManager()->flush();
|
$this->getEntityManager()->flush();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user