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