From b93a8222995f5427a5ac06f7d0d59d569ceceb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 13 Sep 2023 11:45:01 +0200 Subject: [PATCH] Force again the kernel to shutdown before creating the client --- .../src/Tests/Controller/AsideActivityControllerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php b/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php index 638294f38..bce883126 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php @@ -65,6 +65,7 @@ final class AsideActivityControllerTest extends WebTestCase */ public function testEditWithoutUsers(int $asideActivityId) { + self::ensureKernelShutdown(); $client = $this->getClientAuthenticated(); $client->request('GET', "/fr/asideactivity/{$asideActivityId}/edit"); @@ -73,6 +74,7 @@ final class AsideActivityControllerTest extends WebTestCase public function testIndexWithoutUsers() { + self::ensureKernelShutdown(); $client = $this->getClientAuthenticated(); $client->request('GET', '/fr/asideactivity'); @@ -81,6 +83,7 @@ final class AsideActivityControllerTest extends WebTestCase public function testNewWithoutUsers() { + self::ensureKernelShutdown(); $client = $this->getClientAuthenticated(); $client->request('GET', '/fr/asideactivity/new');