From f10972e2fe33c7917a2265e9d42c8b478bc0dc38 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 3 Aug 2023 16:34:56 +0200 Subject: fix: close cursor after reading the invitation Signed-off-by: Daniel Kesselberg --- apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/dav/tests/unit') diff --git a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php index aac79844aac..2d9132ddccb 100644 --- a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php +++ b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php @@ -465,6 +465,8 @@ EOF; ->method('fetch') ->with(\PDO::FETCH_ASSOC) ->willReturn($return); + $stmt->expects($this->once()) + ->method('closeCursor'); $function = 'functionToken'; $expr->expects($this->once()) @@ -490,7 +492,7 @@ EOF; ->with($function) ->willReturn($queryBuilder); $queryBuilder->expects($this->once()) - ->method('execute') + ->method('executeQuery') ->with() ->willReturn($stmt); -- cgit v1.2.3