diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-03-17 00:10:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-17 00:10:47 +0100 |
commit | 98847dd4485aafadf11a140d5bb8fc32704509c5 (patch) | |
tree | a63820a84a0b5d8512a4302a385870197adc748b /tests | |
parent | c1bd34b1f96ba8d9a0ce0ffec580a4ca73d6dd4a (diff) | |
parent | d480f3af4fda882fe01c4ec523eb3ba7d62b5db2 (diff) |
Merge pull request #9066 from nextcloud/feature/noid/mark-notifications-as-read-in-receive-messages
Allow to receive messages without marking notifications as unread
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/CapabilitiesTest.php | 1 | ||||
-rw-r--r-- | tests/php/Chat/ChatManagerTest.php | 4 |
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); } |