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

@@ -31,10 +31,14 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
protected function setUp(): void
{
self::bootKernel();
$this->addressRepository = self::$container->get(AddressRepository::class);
}
protected function tearDown(): void
{
self::ensureKernelShutdown();
}
/**
* @dataProvider addressToReviewProvider
*/
@@ -92,6 +96,8 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
$em->flush();
yield [$address->getId()];
self::ensureKernelShutdown();
}
public static function addressUnsyncedProvider(): iterable
@@ -123,5 +129,7 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
$em->flush();
yield [$address->getId()];
self::ensureKernelShutdown();
}
}