Skip to content

Commit

Permalink
Change login code to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Aug 27, 2024
1 parent d53ba39 commit 75a81f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bundle/Functional/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 75a81f6

Please sign in to comment.