summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-19 20:13:07 +0200
committerJoas Schilling <coding@schilljs.com>2022-04-19 20:13:07 +0200
commitfe5e6737b38d8280d333402638d541813028dd97 (patch)
tree0b94cf99b8484e826e7c1213c36410f7f2e02783 /tests
parentdd7aca92faa8af4a775776c3646fae5aa8c8b0c7 (diff)
Keep "self" in name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php6
-rw-r--r--tests/integration/features/reaction/react.feature8
2 files changed, 7 insertions, 7 deletions
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 |