From a899c3f3cb2042ccee67b2df3f3bac69b329f196 Mon Sep 17 00:00:00 2001 From: Takashi Kanemoto Date: Wed, 8 Oct 2025 04:24:35 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20ensure=20the=20kernel=20i?= =?UTF-8?q?s=20booted=20before=20using=20`KernelBrowser::loginUser()`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Symfony/Bundle/Test/Client.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/Test/Client.php b/src/Symfony/Bundle/Test/Client.php index b6192abd70..1936314ab5 100644 --- a/src/Symfony/Bundle/Test/Client.php +++ b/src/Symfony/Bundle/Test/Client.php @@ -236,6 +236,8 @@ private static function extractHeaders(array $options): array public function loginUser(UserInterface $user, string $firewallContext = 'main'): self { + $this->kernelBrowser->getKernel()->boot(); + $this->kernelBrowser->loginUser($user, $firewallContext); return $this;