summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcel Müller <marcel-mueller@gmx.de>2023-03-15 17:04:36 +0100
committerMarcel Müller <marcel-mueller@gmx.de>2023-03-16 12:44:07 +0100
commitd480f3af4fda882fe01c4ec523eb3ba7d62b5db2 (patch)
tree0a4871c6fadf1a5a76ed3c5f7e428f068bf987b0 /tests
parent049c56f4d85cd35bbba5079061cce0f0f9fda513 (diff)
Allow to retrieve messages without marking notifications as read
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/CapabilitiesTest.php1
-rw-r--r--tests/php/Chat/ChatManagerTest.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php
index 85f308372..adc197887 100644
--- a/tests/php/CapabilitiesTest.php
+++ b/tests/php/CapabilitiesTest.php
@@ -125,6 +125,7 @@ class CapabilitiesTest extends TestCase {
'recording-v1',
'chat-get-context',
'single-conversation-status',
+ 'chat-keep-notifications',
'message-expiration',
'reactions',
];
diff --git a/tests/php/Chat/ChatManagerTest.php b/tests/php/Chat/ChatManagerTest.php
index 5ae6955e5..e0f3c9dd7 100644
--- a/tests/php/Chat/ChatManagerTest.php
+++ b/tests/php/Chat/ChatManagerTest.php
@@ -347,7 +347,7 @@ class ChatManagerTest extends TestCase {
->method('getUID')
->willReturn('userId');
- $comments = $this->chatManager->waitForNewMessages($chat, $offset, $limit, $timeout, $user, false);
+ $comments = $this->chatManager->waitForNewMessages($chat, $offset, $limit, $timeout, $user, false, true);
$this->assertEquals($expected, $comments);
}
@@ -385,7 +385,7 @@ class ChatManagerTest extends TestCase {
->method('getUID')
->willReturn('userId');
- $comments = $this->chatManager->waitForNewMessages($chat, $offset, $limit, $timeout, $user, false);
+ $comments = $this->chatManager->waitForNewMessages($chat, $offset, $limit, $timeout, $user, false, true);
$this->assertEquals($expected, $comments);
}