mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added stricter types for mocks
This commit is contained in:
@@ -17,7 +17,7 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
class DomainVisitsActionTest extends TestCase
|
||||
{
|
||||
private DomainVisitsAction $action;
|
||||
private MockObject $visitsHelper;
|
||||
private MockObject & VisitsStatsHelperInterface $visitsHelper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
class GlobalVisitsActionTest extends TestCase
|
||||
{
|
||||
private GlobalVisitsAction $action;
|
||||
private MockObject $helper;
|
||||
private MockObject & VisitsStatsHelperInterface $helper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
class NonOrphanVisitsActionTest extends TestCase
|
||||
{
|
||||
private NonOrphanVisitsAction $action;
|
||||
private MockObject $visitsHelper;
|
||||
private MockObject & VisitsStatsHelperInterface $visitsHelper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -22,8 +22,8 @@ use function count;
|
||||
class OrphanVisitsActionTest extends TestCase
|
||||
{
|
||||
private OrphanVisitsAction $action;
|
||||
private MockObject $visitsHelper;
|
||||
private MockObject $orphanVisitTransformer;
|
||||
private MockObject & VisitsStatsHelperInterface $visitsHelper;
|
||||
private MockObject & DataTransformerInterface $orphanVisitTransformer;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
class ShortUrlVisitsActionTest extends TestCase
|
||||
{
|
||||
private ShortUrlVisitsAction $action;
|
||||
private MockObject $visitsHelper;
|
||||
private MockObject & VisitsStatsHelperInterface $visitsHelper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
class TagVisitsActionTest extends TestCase
|
||||
{
|
||||
private TagVisitsAction $action;
|
||||
private MockObject $visitsHelper;
|
||||
private MockObject & VisitsStatsHelperInterface $visitsHelper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user