diff --git a/src/Bundle/ChillMainBundle/Tests/Export/AccompanyingCourseExportHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Export/AccompanyingCourseExportHelperTest.php index 62af515ec..7fbebbe9d 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/AccompanyingCourseExportHelperTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/AccompanyingCourseExportHelperTest.php @@ -33,13 +33,10 @@ class AccompanyingCourseExportHelperTest extends KernelTestCase private EntityManagerInterface $em; - private AccompanyingCourseExportHelper $accompanyingCourseExportHelper; - protected function setUp(): void { self::bootKernel(); $this->em = self::$container->get(EntityManagerInterface::class); - $this->accompanyingCourseExportHelper = self::$container->get(AccompanyingCourseExportHelper::class); } public static function tearDownAfterClass(): void @@ -63,7 +60,7 @@ class AccompanyingCourseExportHelperTest extends KernelTestCase [$periodA, $periodB, $periodC] = $this->prepareData(); $qb = $this->em->getRepository(AccompanyingPeriod::class)->createQueryBuilder('acp'); - $this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb); + AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb); $qb->select('acp.id'); @@ -105,13 +102,12 @@ class AccompanyingCourseExportHelperTest extends KernelTestCase $this->em->persist($periodB); $this->em->persist($periodC); - self::$entitiesToDelete[] = [ClosingMotive::class, $cmChild]; - self::$entitiesToDelete[] = [ClosingMotive::class, $cmA]; - self::$entitiesToDelete[] = [ClosingMotive::class, $cmB]; - self::$entitiesToDelete[] = [AccompanyingPeriod::class, $periodA]; self::$entitiesToDelete[] = [AccompanyingPeriod::class, $periodB]; self::$entitiesToDelete[] = [AccompanyingPeriod::class, $periodC]; + self::$entitiesToDelete[] = [ClosingMotive::class, $cmChild]; + self::$entitiesToDelete[] = [ClosingMotive::class, $cmA]; + self::$entitiesToDelete[] = [ClosingMotive::class, $cmB]; $this->em->flush(); $this->em->clear();