diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-08-03 16:34:56 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-11 16:37:37 +0000 |
commit | f10972e2fe33c7917a2265e9d42c8b478bc0dc38 (patch) | |
tree | 04dc05e59cf442f50983ca538634129f46891a1b /apps/dav/tests | |
parent | acd4e5dc0fc23c2e53c90525492bbe8218c15323 (diff) | |
download | nextcloud-server-f10972e2fe33c7917a2265e9d42c8b478bc0dc38.tar.gz nextcloud-server-f10972e2fe33c7917a2265e9d42c8b478bc0dc38.zip |
fix: close cursor after reading the invitation
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
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); |