diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-05-02 22:01:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 22:01:51 +0200 |
commit | c4fee5eec162fc146c9000f171ea4d4273fc70de (patch) | |
tree | 67e21c45ef8ec7c06f0af439a666c9b69261813f /tests/integration | |
parent | e1bb98efcd1017bcc7b9b8cdef5386cfd38e2be7 (diff) | |
parent | 0cf8800f20bc8a7b3c6368288a3d622bbf5c0d28 (diff) |
Merge pull request #9412 from nextcloud/bugfix/8787/keep-guest-attendees-with-values
Bugfix/8787/keep guest attendees with values
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index a98184571..6276e1bba 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -130,6 +130,10 @@ class FeatureContext implements Context, SnippetAcceptingContext { } } + if (!isset(self::$userToAttendeeId[$room][$type][$id])) { + throw new \Exception('Attendee id unknown, please call userLoadsAttendeeIdsInRoom with a user that has access before'); + } + return self::$userToAttendeeId[$room][$type][$id]; } @@ -1051,6 +1055,10 @@ class FeatureContext implements Context, SnippetAcceptingContext { // in chat messages is a hashed version instead. self::$sessionIdToUser[sha1($response['sessionId'])] = $user; self::$userToSessionId[$user] = $response['sessionId']; + if (!isset(self::$userToAttendeeId[$identifier][$response['actorType']])) { + self::$userToAttendeeId[$identifier][$response['actorType']] = []; + } + self::$userToAttendeeId[$identifier][$response['actorType']][$response['actorId']] = $response['attendeeId']; } } |