Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-24 17:13:09 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-24 17:13:09 +0300
commit367be7c55fd48583e0fdcd058b813a2f6e3fe5e1 (patch)
treec45ee460ec76579595be91a85abfb50605b73807 /tests
parentfbf1334dc8c192ebdd335663cacfb810daf4d841 (diff)
Allow reactions also with other combined emojis
Honerful copying the EmojiService from UserStatus for now I think this should be put into a decent place and then reused, but I couldn't find somethin short term before beta1 Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Comments/ManagerTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php
index 23a9346909a..961f8dfdd41 100644
--- a/tests/lib/Comments/ManagerTest.php
+++ b/tests/lib/Comments/ManagerTest.php
@@ -3,6 +3,7 @@
namespace Test\Comments;
use OC\Comments\Comment;
+use OC\Comments\EmojiHelper;
use OC\Comments\Manager;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Comments\IComment;
@@ -74,6 +75,7 @@ class ManagerTest extends TestCase {
$this->createMock(LoggerInterface::class),
$this->createMock(IConfig::class),
$this->createMock(ITimeFactory::class),
+ new EmojiHelper($this->connection),
$this->createMock(IInitialStateService::class)
);
}
@@ -1181,15 +1183,13 @@ class ManagerTest extends TestCase {
public function providerTestReactionMessageSize(): array {
return [
- ['a', true],
- ['1', true],
- ['12', true],
- ['123', false],
+ ['a', false],
+ ['1', false],
['👍', true],
- ['👍👍', true],
+ ['👍👍', false],
['👍🏽', true],
- ['👍🏽👍', false],
- ['👍🏽👍🏽', false],
+ ['👨🏽‍💻', true],
+ ['👨🏽‍💻👍', false],
];
}