From fccc6379ae82e1a1252f9ab9498dee239a93c68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 4 Jan 2021 16:33:41 +0100 Subject: [PATCH] Refresh cookie jar when acting as a different user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- tests/integration/features/bootstrap/ServerContext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/features/bootstrap/ServerContext.php b/tests/integration/features/bootstrap/ServerContext.php index 5116aaa92..56a172aa1 100644 --- a/tests/integration/features/bootstrap/ServerContext.php +++ b/tests/integration/features/bootstrap/ServerContext.php @@ -23,6 +23,7 @@ class ServerContext implements Context { * @Given /^acting as user "([^"]*)"$/ */ public function actingAsUser($user) { + $this->cookieJar = new CookieJar(); $this->loggingInUsingWebAs($user); $this->asAn($user); }