From 9c095a76eb83616b2ea7d27930873da41508d7a9 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Wed, 1 Apr 2026 23:03:33 +0200 Subject: [PATCH] fix: remove actor deletion in AwardTypeRepositoryTest to avoid FK violation Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/Repository/AwardTypeRepositoryTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Repository/AwardTypeRepositoryTest.php b/tests/Repository/AwardTypeRepositoryTest.php index bcf472f..699f946 100644 --- a/tests/Repository/AwardTypeRepositoryTest.php +++ b/tests/Repository/AwardTypeRepositoryTest.php @@ -22,10 +22,9 @@ class AwardTypeRepositoryTest extends KernelTestCase $this->em = self::getContainer()->get(EntityManagerInterface::class); $this->repo = self::getContainer()->get(AwardTypeRepository::class); - // Clean slate + // Clean award data (order matters for FK constraints) $this->em->createQuery('DELETE FROM App\Entity\Award')->execute(); $this->em->createQuery('DELETE FROM App\Entity\AwardType')->execute(); - $this->em->createQuery('DELETE FROM App\Entity\Actor')->execute(); } public function testFindWithMinActorsFiltersCorrectly(): void