mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
DX: fix construct of ReferrerScopeAggregator in test
This commit is contained in:
parent
434ef075da
commit
0e661784b0
@ -13,6 +13,8 @@ namespace Export\Aggregator\AccompanyingCourseAggregators;
|
|||||||
|
|
||||||
use Chill\MainBundle\Entity\Scope;
|
use Chill\MainBundle\Entity\Scope;
|
||||||
use Chill\MainBundle\Repository\ScopeRepositoryInterface;
|
use Chill\MainBundle\Repository\ScopeRepositoryInterface;
|
||||||
|
use Chill\MainBundle\Service\RollingDate\RollingDate;
|
||||||
|
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
|
||||||
use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
|
use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
|
||||||
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
|
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
|
||||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||||
@ -40,9 +42,13 @@ final class ReferrerScopeAggregatorTest extends AbstractAggregatorTest
|
|||||||
(new Scope())->setName(['fr' => 'scope'])
|
(new Scope())->setName(['fr' => 'scope'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$dateConverter = $this->prophesize(RollingDateConverterInterface::class);
|
||||||
|
$dateConverter->convert(Argument::type(RollingDate::class))->willReturn(new DateTimeImmutable());
|
||||||
|
|
||||||
return new ReferrerScopeAggregator(
|
return new ReferrerScopeAggregator(
|
||||||
$scopeRepository->reveal(),
|
$scopeRepository->reveal(),
|
||||||
$translatableStringHelper->reveal()
|
$translatableStringHelper->reveal(),
|
||||||
|
$dateConverter->reveal()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user