From 8e9d57d0b933632805185abf9a5603fb5f094100 Mon Sep 17 00:00:00 2001
From: Jonathan Foucher <jfoucher@gmail.com>
Date: Thu, 9 Nov 2023 16:23:34 +0100
Subject: [PATCH] fix unit tests

---
 tests/Domain/Reporting/Metrics/UserMetricTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Domain/Reporting/Metrics/UserMetricTest.php b/tests/Domain/Reporting/Metrics/UserMetricTest.php
index fb92e5a45..e4d7e1054 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([]);
 
-- 
GitLab