mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 07:33:58 -06:00
Fixed coding styles
This commit is contained in:
parent
ef82158368
commit
da658185c3
@ -57,7 +57,7 @@ class VisitsStatsHelperTest extends TestCase
|
||||
$expectedCount * 3,
|
||||
);
|
||||
$repo->expects($this->once())->method('countOrphanVisits')->with(
|
||||
$this->isInstanceOf(VisitsCountFiltering::class)
|
||||
$this->isInstanceOf(VisitsCountFiltering::class),
|
||||
)->willReturn($expectedCount);
|
||||
$this->em->expects($this->once())->method('getRepository')->with(Visit::class)->willReturn($repo);
|
||||
|
||||
@ -92,7 +92,7 @@ class VisitsStatsHelperTest extends TestCase
|
||||
)->willReturn($list);
|
||||
$repo2->method('countVisitsByShortCode')->with(
|
||||
$identifier,
|
||||
$this->isInstanceOf(VisitsCountFiltering::class)
|
||||
$this->isInstanceOf(VisitsCountFiltering::class),
|
||||
)->willReturn(1);
|
||||
|
||||
$this->em->expects($this->exactly(2))->method('getRepository')->willReturnMap([
|
||||
|
@ -33,7 +33,7 @@ class VisitsTrackerTest extends TestCase
|
||||
public function trackPersistsVisitAndDispatchesEvent(string $method, array $args): void
|
||||
{
|
||||
$this->em->expects($this->once())->method('persist')->with(
|
||||
$this->callback(fn (Visit $visit) => $visit->setId('1') !== null)
|
||||
$this->callback(fn (Visit $visit) => $visit->setId('1') !== null),
|
||||
);
|
||||
$this->em->expects($this->once())->method('flush');
|
||||
$this->eventDispatcher->expects($this->once())->method('dispatch')->with(
|
||||
@ -41,7 +41,6 @@ class VisitsTrackerTest extends TestCase
|
||||
);
|
||||
|
||||
$this->visitsTracker()->{$method}(...$args);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user