diff --git a/tests/Domain/Reporting/Metrics/UserMetricTest.php b/tests/Domain/Reporting/Metrics/UserMetricTest.php index fb92e5a45bc5b9fa5475f5c48ee9a347155fb68b..e4d7e1054e4255298f9bdae4640cfe251e32bd92 100644 --- a/tests/Domain/Reporting/Metrics/UserMetricTest.php +++ b/tests/Domain/Reporting/Metrics/UserMetricTest.php @@ -150,7 +150,7 @@ class UserMetricTest extends TestCase $violationRepo->findBy(Argument::cetera())->shouldBeCalled()->willReturn([]); $this->requestRepository->findAllByCollectivity(Argument::cetera())->shouldBeCalled()->willReturn([]); $collectivity->setHasModuleConformiteTraitement(true); - $this->conformiteTraitementRepository->findAllByCollectivity(Argument::cetera())->shouldBeCalled()->willReturn([]); + $this->conformiteTraitementRepository->findActiveByCollectivity(Argument::cetera())->shouldBeCalled()->willReturn([]); $this->evaluationRepository->findLastByOrganisation(Argument::any())->shouldBeCalled()->willReturn(null); $this->logJournalRepository->findAllByCollectivityWithoutSubjects($collectivity, 15, Argument::any())->shouldBeCalled()->willReturn([]);