From 75a81f6e9366d18933c64efeacb0a6e188f7f664 Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Tue, 27 Aug 2024 17:43:19 +0200 Subject: [PATCH] Change login code to 200 --- tests/bundle/Functional/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bundle/Functional/TestCase.php b/tests/bundle/Functional/TestCase.php index ce0b0918..f56aeb7c 100644 --- a/tests/bundle/Functional/TestCase.php +++ b/tests/bundle/Functional/TestCase.php @@ -399,7 +399,7 @@ protected function login(): \stdClass { $request = $this->createAuthenticationHttpRequest($this->getLoginUsername(), $this->getLoginPassword()); $response = $this->sendHttpRequest($request); - self::assertHttpResponseCodeEquals($response, 201); + self::assertHttpResponseCodeEquals($response, 200); //TODO is 200 correct here? return json_decode($response->getBody()->getContents(), false, JSON_THROW_ON_ERROR)->Session; }