Skip to content

Commit

Permalink
Merge branch 'main' into develop #2231
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinx13 committed Mar 15, 2024
2 parents 07fdf09 + f20f856 commit a93063b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Repository/AffectationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ public function findAffectationSubscribedToEsabora(
}

if (null !== $uuidSignalement) {
$qb->innerJoin('a.signalement', 's')
->andWhere('s.uuid LIKE :uuid_signalement')
$qb->andWhere('s.uuid LIKE :uuid_signalement')
->setParameter('uuid_signalement', $uuidSignalement);
}

Expand Down
8 changes: 8 additions & 0 deletions tests/Functional/Repository/AffectationRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,13 @@ public function testFindAffectationSubscribedToEsabora(): void
foreach ($affectationsSubscribedToEsabora as $affectationSubscribedToEsabora) {
$this->assertCount(2, $affectationSubscribedToEsabora->getPartner()->getEsaboraCredential());
}

$affectationsSubscribedToEsabora = $affectationRepository->findAffectationSubscribedToEsabora(
PartnerType::ARS,
true,
'00000000-0000-0000-2023-000000000012'
);

$this->assertCount(1, $affectationsSubscribedToEsabora);
}
}

0 comments on commit a93063b

Please sign in to comment.