Fix sessionserver/join endpoint: return empty response with 204 status code on success join

This commit is contained in:
ErickSkrauch
2023-11-16 20:21:26 +01:00
parent 984c6e7682
commit 47463d7435
3 changed files with 8 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ class SessionServerSteps extends FunctionalTester {
'serverId' => $serverId,
]);
$this->canSeeResponseContainsJson(['id' => 'OK']);
$this->seeResponseCodeIs(204);
}
return [$username, $serverId];

View File

@@ -150,12 +150,9 @@ class JoinCest {
]);
}
private function expectSuccessResponse(FunctionalTester $I) {
$I->seeResponseCodeIs(200);
$I->seeResponseIsJson();
$I->canSeeResponseContainsJson([
'id' => 'OK',
]);
private function expectSuccessResponse(FunctionalTester $I): void {
$I->seeResponseCodeIs(204);
$I->canSeeResponseEquals('');
}
}