sessions: fix failing tests due to changed api endpoints

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-11-13 20:24:46 +01:00
parent ccf73736c4
commit 6d86ec70ef

View File

@@ -32,7 +32,7 @@ class SessionContext implements Context {
$this->boardContext->fetchesTheBoardNamed($name);
$board = $this->boardContext->getLastUsedBoard();
$this->requestContext->sendJSONrequest('PUT', '/index.php/apps/deck/session/create', [
$this->requestContext->sendJSONrequest('PUT', '/ocs/v2.php/apps/deck/api/v1.0/session/create', [
'boardId' => $board['id'],
]);
$res = json_decode((string)$this->getResponse()->getBody(), true);
@@ -72,7 +72,7 @@ class SessionContext implements Context {
$user = $this->serverContext->getCurrentUser();
$token = $this->token[$user];
Assert::assertNotEmpty($token, "no token for the user found");
$this->requestContext->sendJSONrequest('POST', '/index.php/apps/deck/session/close', [
$this->requestContext->sendJSONrequest('POST', '/ocs/v2.php/apps/deck/api/v1.0/session/close', [
'boardId' => $board['id'],
'token' => $token
]);