Remove deprecation linked to kernel shutdown

This commit is contained in:
2023-08-31 18:36:37 +02:00
parent 7c58880139
commit 6f11dffcbd
23 changed files with 166 additions and 85 deletions

View File

@@ -42,6 +42,7 @@ final class HouseholdApiControllerTest extends WebTestCase
protected function tearDown(): void
{
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
foreach ($this->toDelete as [$class, $id]) {
@@ -50,6 +51,8 @@ final class HouseholdApiControllerTest extends WebTestCase
}
$em->flush();
self::ensureKernelShutdown();
}
public function generateHouseholdAssociatedWithAddressReference()
@@ -91,6 +94,8 @@ final class HouseholdApiControllerTest extends WebTestCase
];
yield [$reference->getId(), $h->getId()];
self::ensureKernelShutdown();
}
public function generateHouseholdId()
@@ -121,6 +126,8 @@ final class HouseholdApiControllerTest extends WebTestCase
yield [array_pop($householdIds)['id']];
yield [array_pop($householdIds)['id']];
self::ensureKernelShutdown();
}
public function generatePersonId()
@@ -144,6 +151,8 @@ final class HouseholdApiControllerTest extends WebTestCase
->first()->getPerson();
yield [$person->getId()];
self::ensureKernelShutdown();
}
/**