mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix: remove data after executing CronJobDatabaseInteractionTest
This commit is contained in:
parent
df529be2ce
commit
9cdef5f951
@ -40,6 +40,17 @@ class CronJobDatabaseInteractionTest extends KernelTestCase
|
|||||||
$this->cronJobExecutionRepository = self::$container->get(CronJobExecutionRepository::class);
|
$this->cronJobExecutionRepository = self::$container->get(CronJobExecutionRepository::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function tearDownAfterClass(): void
|
||||||
|
{
|
||||||
|
self::bootKernel();
|
||||||
|
|
||||||
|
$entityManager = self::$container->get(EntityManagerInterface::class);
|
||||||
|
|
||||||
|
$entityManager->createQuery("DELETE " . CronJobExecution::class . ' cje WHERE cje.key LIKE :key')
|
||||||
|
->setParameter('key', 'test-with-data')
|
||||||
|
->execute();
|
||||||
|
}
|
||||||
|
|
||||||
public function testCompleteLifeCycle(): void
|
public function testCompleteLifeCycle(): void
|
||||||
{
|
{
|
||||||
$cronjob = $this->prophesize(CronJobInterface::class);
|
$cronjob = $this->prophesize(CronJobInterface::class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user