diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-05 14:42:42 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-03-06 21:04:59 +0100 |
commit | 1a26108cdd7ae6680f22ee51b8763f1dea0850ed (patch) | |
tree | 7e3d28ddeaed866523c096c5b0c5a4d98ffa5fc7 /tests/integration | |
parent | d4c11cc68708324df6746db40d37f6a5ebdee8f0 (diff) |
fix(API): Add constants for known comments metadata
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/features/bootstrap/FeatureContext.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index a462025ec..d9fc9f60b 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -2728,16 +2728,16 @@ class FeatureContext implements Context, SnippetAcceptingContext { $data['reactionsSelf'] = null; } } + if ($includeLastEdit) { $data['lastEditActorType'] = $message['lastEditActorType'] ?? ''; $data['lastEditActorDisplayName'] = $message['lastEditActorDisplayName'] ?? ''; $data['lastEditActorId'] = $message['lastEditActorId'] ?? ''; - if ($message['lastEditActorType'] === 'guests') { + if (($message['lastEditActorType'] ?? '') === 'guests') { $data['lastEditActorId'] = self::$sessionIdToUser[$message['lastEditActorId']]; } } - return $data; }, $messages, $expected)); } |