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:
@@ -22,10 +22,9 @@ class AwardTypeRepositoryTest extends KernelTestCase
|
|||||||
$this->em = self::getContainer()->get(EntityManagerInterface::class);
|
$this->em = self::getContainer()->get(EntityManagerInterface::class);
|
||||||
$this->repo = self::getContainer()->get(AwardTypeRepository::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\Award')->execute();
|
||||||
$this->em->createQuery('DELETE FROM App\Entity\AwardType')->execute();
|
$this->em->createQuery('DELETE FROM App\Entity\AwardType')->execute();
|
||||||
$this->em->createQuery('DELETE FROM App\Entity\Actor')->execute();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFindWithMinActorsFiltersCorrectly(): void
|
public function testFindWithMinActorsFiltersCorrectly(): void
|
||||||
|
|||||||
Reference in New Issue
Block a user