From 6d86ec70efe630feb90fb642223d088730deef6f Mon Sep 17 00:00:00 2001 From: chandi Langecker Date: Sun, 13 Nov 2022 20:24:46 +0100 Subject: [PATCH] sessions: fix failing tests due to changed api endpoints Signed-off-by: chandi Langecker --- tests/integration/features/bootstrap/SessionContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/features/bootstrap/SessionContext.php b/tests/integration/features/bootstrap/SessionContext.php index b5c0d494c..d617bc03f 100644 --- a/tests/integration/features/bootstrap/SessionContext.php +++ b/tests/integration/features/bootstrap/SessionContext.php @@ -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 ]);