From fe5e6737b38d8280d333402638d541813028dd97 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 19 Apr 2022 20:13:07 +0200 Subject: Keep "self" in name Signed-off-by: Joas Schilling --- tests/integration/features/bootstrap/FeatureContext.php | 6 +++--- tests/integration/features/reaction/react.feature | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index ee5ddac76..60f0c481c 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -1705,10 +1705,10 @@ class FeatureContext implements Context, SnippetAcceptingContext { } if ($includeReactions) { $data['reactions'] = json_encode($message['reactions'], JSON_UNESCAPED_UNICODE); - if (isset($message['myReactions'])) { - $data['myReactions'] = json_encode($message['myReactions'], JSON_UNESCAPED_UNICODE); + if (isset($message['reactionsSelf'])) { + $data['reactionsSelf'] = json_encode($message['reactionsSelf'], JSON_UNESCAPED_UNICODE); } else { - $data['myReactions'] = null; + $data['reactionsSelf'] = null; } } return $data; diff --git a/tests/integration/features/reaction/react.feature b/tests/integration/features/reaction/react.feature index 86b796f1d..7c9613e8b 100644 --- a/tests/integration/features/reaction/react.feature +++ b/tests/integration/features/reaction/react.feature @@ -18,16 +18,16 @@ Feature: reaction/react | room | users | participant1 | participant1-displayname | user_added | | room | users | participant1 | participant1-displayname | conversation_created | Then user "participant1" sees the following messages in room "room" with 200 - | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | myReactions | - | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":1} | | + | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | reactionsSelf | + | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":1} | | And user "participant1" react with "👍" on message "Message 1" to room "room" with 201 | actorType | actorId | actorDisplayName | reaction | | users | participant1 | participant1-displayname | 👍 | | users | participant2 | participant2-displayname | 👍 | And user "participant1" react with "🚀" on message "Message 1" to room "room" with 201 Then user "participant1" sees the following messages in room "room" with 200 - | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | myReactions | - | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":2,"🚀":1} | ["👍","🚀"] | + | room | actorType | actorId | actorDisplayName | message | messageParameters | reactions | reactionsSelf | + | room | users | participant1 | participant1-displayname | Message 1 | [] | {"👍":2,"🚀":1} | ["👍","🚀"] | Then user "participant1" sees the following system messages in room "room" with 200 | room | actorType | actorId | actorDisplayName | systemMessage | | room | users | participant1 | participant1-displayname | reaction | -- cgit v1.2.3