From 7d78e2ae069166cb3cf91104d98953753c6deffb Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 6 Aug 2023 13:48:53 +0100 Subject: [PATCH] Ensure the kernel is shut down before calling createClient --- tests/Wallabag/CoreBundle/WallabagCoreTestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php index 79221ad1b..9b43607c4 100644 --- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php +++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php @@ -22,6 +22,8 @@ abstract class WallabagCoreTestCase extends WebTestCase protected function setUp(): void { + static::ensureKernelShutdown(); + parent::setUp(); $this->client = static::createClient(); @@ -29,6 +31,8 @@ abstract class WallabagCoreTestCase extends WebTestCase public function getNewClient() { + static::ensureKernelShutdown(); + return $this->client = static::createClient(); }