fix: remove actor deletion in AwardTypeRepositoryTest to avoid FK violation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere
2026-04-01 23:03:33 +02:00
parent f291df0fcf
commit 9c095a76eb

View File

@@ -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