ManagerTest.php 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace Test\Comments;
  8. use OC\Comments\Comment;
  9. use OC\Comments\Manager;
  10. use OC\EmojiHelper;
  11. use OCP\AppFramework\Utility\ITimeFactory;
  12. use OCP\Comments\IComment;
  13. use OCP\Comments\ICommentsEventHandler;
  14. use OCP\Comments\ICommentsManager;
  15. use OCP\Comments\NotFoundException;
  16. use OCP\Files\Folder;
  17. use OCP\Files\IRootFolder;
  18. use OCP\IConfig;
  19. use OCP\IDBConnection;
  20. use OCP\IInitialStateService;
  21. use OCP\IUser;
  22. use OCP\Server;
  23. use Psr\Log\LoggerInterface;
  24. use Test\TestCase;
  25. /**
  26. * Class ManagerTest
  27. *
  28. * @group DB
  29. */
  30. class ManagerTest extends TestCase {
  31. /** @var IDBConnection */
  32. private $connection;
  33. /** @var \PHPUnit\Framework\MockObject\MockObject|IRootFolder */
  34. private $rootFolder;
  35. protected function setUp(): void {
  36. parent::setUp();
  37. $this->connection = \OC::$server->getDatabaseConnection();
  38. $this->rootFolder = $this->createMock(IRootFolder::class);
  39. $sql = $this->connection->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*comments`');
  40. $this->connection->prepare($sql)->execute();
  41. $sql = $this->connection->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*reactions`');
  42. $this->connection->prepare($sql)->execute();
  43. }
  44. protected function addDatabaseEntry($parentId, $topmostParentId, $creationDT = null, $latestChildDT = null, $objectId = null, $expireDate = null) {
  45. if (is_null($creationDT)) {
  46. $creationDT = new \DateTime();
  47. }
  48. if (is_null($latestChildDT)) {
  49. $latestChildDT = new \DateTime('yesterday');
  50. }
  51. if (is_null($objectId)) {
  52. $objectId = 'file64';
  53. }
  54. $qb = $this->connection->getQueryBuilder();
  55. $qb
  56. ->insert('comments')
  57. ->values([
  58. 'parent_id' => $qb->createNamedParameter($parentId),
  59. 'topmost_parent_id' => $qb->createNamedParameter($topmostParentId),
  60. 'children_count' => $qb->createNamedParameter(2),
  61. 'actor_type' => $qb->createNamedParameter('users'),
  62. 'actor_id' => $qb->createNamedParameter('alice'),
  63. 'message' => $qb->createNamedParameter('nice one'),
  64. 'verb' => $qb->createNamedParameter('comment'),
  65. 'creation_timestamp' => $qb->createNamedParameter($creationDT, 'datetime'),
  66. 'latest_child_timestamp' => $qb->createNamedParameter($latestChildDT, 'datetime'),
  67. 'object_type' => $qb->createNamedParameter('files'),
  68. 'object_id' => $qb->createNamedParameter($objectId),
  69. 'expire_date' => $qb->createNamedParameter($expireDate, 'datetime'),
  70. 'reference_id' => $qb->createNamedParameter('referenceId'),
  71. 'meta_data' => $qb->createNamedParameter(json_encode(['last_edit_actor_id' => 'admin'])),
  72. ])
  73. ->execute();
  74. return $qb->getLastInsertId();
  75. }
  76. protected function getManager() {
  77. return new Manager(
  78. $this->connection,
  79. $this->createMock(LoggerInterface::class),
  80. $this->createMock(IConfig::class),
  81. $this->createMock(ITimeFactory::class),
  82. new EmojiHelper($this->connection),
  83. $this->createMock(IInitialStateService::class),
  84. $this->rootFolder,
  85. );
  86. }
  87. public function testGetCommentNotFound() {
  88. $this->expectException(\OCP\Comments\NotFoundException::class);
  89. $manager = $this->getManager();
  90. $manager->get('22');
  91. }
  92. public function testGetCommentNotFoundInvalidInput() {
  93. $this->expectException(\InvalidArgumentException::class);
  94. $manager = $this->getManager();
  95. $manager->get('unexisting22');
  96. }
  97. public function testGetComment() {
  98. $manager = $this->getManager();
  99. $creationDT = new \DateTime();
  100. $latestChildDT = new \DateTime('yesterday');
  101. $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder();
  102. $qb
  103. ->insert('comments')
  104. ->values([
  105. 'parent_id' => $qb->createNamedParameter('2'),
  106. 'topmost_parent_id' => $qb->createNamedParameter('1'),
  107. 'children_count' => $qb->createNamedParameter(2),
  108. 'actor_type' => $qb->createNamedParameter('users'),
  109. 'actor_id' => $qb->createNamedParameter('alice'),
  110. 'message' => $qb->createNamedParameter('nice one'),
  111. 'verb' => $qb->createNamedParameter('comment'),
  112. 'creation_timestamp' => $qb->createNamedParameter($creationDT, 'datetime'),
  113. 'latest_child_timestamp' => $qb->createNamedParameter($latestChildDT, 'datetime'),
  114. 'object_type' => $qb->createNamedParameter('files'),
  115. 'object_id' => $qb->createNamedParameter('file64'),
  116. 'reference_id' => $qb->createNamedParameter('referenceId'),
  117. 'meta_data' => $qb->createNamedParameter(json_encode(['last_edit_actor_id' => 'admin'])),
  118. ])
  119. ->execute();
  120. $id = strval($qb->getLastInsertId());
  121. $comment = $manager->get($id);
  122. $this->assertTrue($comment instanceof IComment);
  123. $this->assertSame($comment->getId(), $id);
  124. $this->assertSame($comment->getParentId(), '2');
  125. $this->assertSame($comment->getTopmostParentId(), '1');
  126. $this->assertSame($comment->getChildrenCount(), 2);
  127. $this->assertSame($comment->getActorType(), 'users');
  128. $this->assertSame($comment->getActorId(), 'alice');
  129. $this->assertSame($comment->getMessage(), 'nice one');
  130. $this->assertSame($comment->getVerb(), 'comment');
  131. $this->assertSame($comment->getObjectType(), 'files');
  132. $this->assertSame($comment->getObjectId(), 'file64');
  133. $this->assertEquals($comment->getCreationDateTime()->getTimestamp(), $creationDT->getTimestamp());
  134. $this->assertEquals($comment->getLatestChildDateTime(), $latestChildDT);
  135. $this->assertEquals($comment->getReferenceId(), 'referenceId');
  136. $this->assertEquals($comment->getMetaData(), ['last_edit_actor_id' => 'admin']);
  137. }
  138. public function testGetTreeNotFound() {
  139. $this->expectException(\OCP\Comments\NotFoundException::class);
  140. $manager = $this->getManager();
  141. $manager->getTree('22');
  142. }
  143. public function testGetTreeNotFoundInvalidIpnut() {
  144. $this->expectException(\InvalidArgumentException::class);
  145. $manager = $this->getManager();
  146. $manager->getTree('unexisting22');
  147. }
  148. public function testGetTree() {
  149. $headId = $this->addDatabaseEntry(0, 0);
  150. $this->addDatabaseEntry($headId, $headId, new \DateTime('-3 hours'));
  151. $this->addDatabaseEntry($headId, $headId, new \DateTime('-2 hours'));
  152. $id = $this->addDatabaseEntry($headId, $headId, new \DateTime('-1 hour'));
  153. $manager = $this->getManager();
  154. $tree = $manager->getTree($headId);
  155. // Verifying the root comment
  156. $this->assertTrue(isset($tree['comment']));
  157. $this->assertTrue($tree['comment'] instanceof IComment);
  158. $this->assertSame($tree['comment']->getId(), strval($headId));
  159. $this->assertTrue(isset($tree['replies']));
  160. $this->assertSame(count($tree['replies']), 3);
  161. // one level deep
  162. foreach ($tree['replies'] as $reply) {
  163. $this->assertTrue($reply['comment'] instanceof IComment);
  164. $this->assertSame($reply['comment']->getId(), strval($id));
  165. $this->assertSame(count($reply['replies']), 0);
  166. $id--;
  167. }
  168. }
  169. public function testGetTreeNoReplies() {
  170. $id = $this->addDatabaseEntry(0, 0);
  171. $manager = $this->getManager();
  172. $tree = $manager->getTree($id);
  173. // Verifying the root comment
  174. $this->assertTrue(isset($tree['comment']));
  175. $this->assertTrue($tree['comment'] instanceof IComment);
  176. $this->assertSame($tree['comment']->getId(), strval($id));
  177. $this->assertTrue(isset($tree['replies']));
  178. $this->assertSame(count($tree['replies']), 0);
  179. // one level deep
  180. foreach ($tree['replies'] as $reply) {
  181. throw new \Exception('This ain`t happen');
  182. }
  183. }
  184. public function testGetTreeWithLimitAndOffset() {
  185. $headId = $this->addDatabaseEntry(0, 0);
  186. $this->addDatabaseEntry($headId, $headId, new \DateTime('-3 hours'));
  187. $this->addDatabaseEntry($headId, $headId, new \DateTime('-2 hours'));
  188. $this->addDatabaseEntry($headId, $headId, new \DateTime('-1 hour'));
  189. $idToVerify = $this->addDatabaseEntry($headId, $headId, new \DateTime());
  190. $manager = $this->getManager();
  191. for ($offset = 0; $offset < 3; $offset += 2) {
  192. $tree = $manager->getTree(strval($headId), 2, $offset);
  193. // Verifying the root comment
  194. $this->assertTrue(isset($tree['comment']));
  195. $this->assertTrue($tree['comment'] instanceof IComment);
  196. $this->assertSame($tree['comment']->getId(), strval($headId));
  197. $this->assertTrue(isset($tree['replies']));
  198. $this->assertSame(count($tree['replies']), 2);
  199. // one level deep
  200. foreach ($tree['replies'] as $reply) {
  201. $this->assertTrue($reply['comment'] instanceof IComment);
  202. $this->assertSame($reply['comment']->getId(), strval($idToVerify));
  203. $this->assertSame(count($reply['replies']), 0);
  204. $idToVerify--;
  205. }
  206. }
  207. }
  208. public function testGetForObject() {
  209. $this->addDatabaseEntry(0, 0);
  210. $manager = $this->getManager();
  211. $comments = $manager->getForObject('files', 'file64');
  212. $this->assertTrue(is_array($comments));
  213. $this->assertSame(count($comments), 1);
  214. $this->assertTrue($comments[0] instanceof IComment);
  215. $this->assertSame($comments[0]->getMessage(), 'nice one');
  216. }
  217. public function testGetForObjectWithLimitAndOffset() {
  218. $this->addDatabaseEntry(0, 0, new \DateTime('-6 hours'));
  219. $this->addDatabaseEntry(0, 0, new \DateTime('-5 hours'));
  220. $this->addDatabaseEntry(1, 1, new \DateTime('-4 hours'));
  221. $this->addDatabaseEntry(0, 0, new \DateTime('-3 hours'));
  222. $this->addDatabaseEntry(2, 2, new \DateTime('-2 hours'));
  223. $this->addDatabaseEntry(2, 2, new \DateTime('-1 hours'));
  224. $idToVerify = $this->addDatabaseEntry(3, 1, new \DateTime());
  225. $manager = $this->getManager();
  226. $offset = 0;
  227. do {
  228. $comments = $manager->getForObject('files', 'file64', 3, $offset);
  229. $this->assertTrue(is_array($comments));
  230. foreach ($comments as $comment) {
  231. $this->assertTrue($comment instanceof IComment);
  232. $this->assertSame($comment->getMessage(), 'nice one');
  233. $this->assertSame($comment->getId(), strval($idToVerify));
  234. $idToVerify--;
  235. }
  236. $offset += 3;
  237. } while (count($comments) > 0);
  238. }
  239. public function testGetForObjectWithDateTimeConstraint() {
  240. $this->addDatabaseEntry(0, 0, new \DateTime('-6 hours'));
  241. $this->addDatabaseEntry(0, 0, new \DateTime('-5 hours'));
  242. $id1 = $this->addDatabaseEntry(0, 0, new \DateTime('-3 hours'));
  243. $id2 = $this->addDatabaseEntry(2, 2, new \DateTime('-2 hours'));
  244. $manager = $this->getManager();
  245. $comments = $manager->getForObject('files', 'file64', 0, 0, new \DateTime('-4 hours'));
  246. $this->assertSame(count($comments), 2);
  247. $this->assertSame($comments[0]->getId(), strval($id2));
  248. $this->assertSame($comments[1]->getId(), strval($id1));
  249. }
  250. public function testGetForObjectWithLimitAndOffsetAndDateTimeConstraint() {
  251. $this->addDatabaseEntry(0, 0, new \DateTime('-7 hours'));
  252. $this->addDatabaseEntry(0, 0, new \DateTime('-6 hours'));
  253. $this->addDatabaseEntry(1, 1, new \DateTime('-5 hours'));
  254. $this->addDatabaseEntry(0, 0, new \DateTime('-3 hours'));
  255. $this->addDatabaseEntry(2, 2, new \DateTime('-2 hours'));
  256. $this->addDatabaseEntry(2, 2, new \DateTime('-1 hours'));
  257. $idToVerify = $this->addDatabaseEntry(3, 1, new \DateTime());
  258. $manager = $this->getManager();
  259. $offset = 0;
  260. do {
  261. $comments = $manager->getForObject('files', 'file64', 3, $offset, new \DateTime('-4 hours'));
  262. $this->assertTrue(is_array($comments));
  263. foreach ($comments as $comment) {
  264. $this->assertTrue($comment instanceof IComment);
  265. $this->assertSame($comment->getMessage(), 'nice one');
  266. $this->assertSame($comment->getId(), strval($idToVerify));
  267. $this->assertTrue(intval($comment->getId()) >= 4);
  268. $idToVerify--;
  269. }
  270. $offset += 3;
  271. } while (count($comments) > 0);
  272. }
  273. public function testGetNumberOfCommentsForObject() {
  274. for ($i = 1; $i < 5; $i++) {
  275. $this->addDatabaseEntry(0, 0);
  276. }
  277. $manager = $this->getManager();
  278. $amount = $manager->getNumberOfCommentsForObject('untype', '00');
  279. $this->assertSame($amount, 0);
  280. $amount = $manager->getNumberOfCommentsForObject('files', 'file64');
  281. $this->assertSame($amount, 4);
  282. }
  283. public function testGetNumberOfUnreadCommentsForFolder() {
  284. $folder = $this->createMock(Folder::class);
  285. $fileIds = range(1111, 1114);
  286. $children = array_map(function (int $id) {
  287. $file = $this->createMock(Folder::class);
  288. $file->method('getId')
  289. ->willReturn($id);
  290. return $file;
  291. }, $fileIds);
  292. $folder->method('getId')->willReturn(1000);
  293. $folder->method('getDirectoryListing')->willReturn($children);
  294. $this->rootFolder->method('getFirstNodeById')
  295. ->with($folder->getId())
  296. ->willReturn($folder);
  297. // 2 comment for 1111 with 1 before read marker
  298. // 2 comments for 1112 with no read marker
  299. // 1 comment for 1113 before read marker
  300. // 1 comment for 1114 with no read marker
  301. $this->addDatabaseEntry(0, 0, null, null, $fileIds[1]);
  302. for ($i = 0; $i < 4; $i++) {
  303. $this->addDatabaseEntry(0, 0, null, null, $fileIds[$i]);
  304. }
  305. $this->addDatabaseEntry(0, 0, (new \DateTime())->modify('-2 days'), null, $fileIds[0]);
  306. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  307. $user = $this->createMock(IUser::class);
  308. $user->expects($this->any())
  309. ->method('getUID')
  310. ->willReturn('comment_test');
  311. $manager = $this->getManager();
  312. $manager->setReadMark('files', (string) $fileIds[0], (new \DateTime())->modify('-1 days'), $user);
  313. $manager->setReadMark('files', (string) $fileIds[2], (new \DateTime()), $user);
  314. $amount = $manager->getNumberOfUnreadCommentsForFolder($folder->getId(), $user);
  315. $this->assertEquals([
  316. $fileIds[0] => 1,
  317. $fileIds[1] => 2,
  318. $fileIds[3] => 1,
  319. ], $amount);
  320. }
  321. /**
  322. * @dataProvider dataGetForObjectSince
  323. * @param $lastKnown
  324. * @param $order
  325. * @param $limit
  326. * @param $resultFrom
  327. * @param $resultTo
  328. */
  329. public function testGetForObjectSince($lastKnown, $order, $limit, $resultFrom, $resultTo) {
  330. $ids = [];
  331. $ids[] = $this->addDatabaseEntry(0, 0);
  332. $ids[] = $this->addDatabaseEntry(0, 0);
  333. $ids[] = $this->addDatabaseEntry(0, 0);
  334. $ids[] = $this->addDatabaseEntry(0, 0);
  335. $ids[] = $this->addDatabaseEntry(0, 0);
  336. $manager = $this->getManager();
  337. $comments = $manager->getForObjectSince('files', 'file64', ($lastKnown === null ? 0 : $ids[$lastKnown]), $order, $limit);
  338. $expected = array_slice($ids, $resultFrom, $resultTo - $resultFrom + 1);
  339. if ($order === 'desc') {
  340. $expected = array_reverse($expected);
  341. }
  342. $this->assertSame($expected, array_map(function (IComment $c) {
  343. return (int) $c->getId();
  344. }, $comments));
  345. }
  346. public function dataGetForObjectSince() {
  347. return [
  348. [null, 'asc', 20, 0, 4],
  349. [null, 'asc', 2, 0, 1],
  350. [null, 'desc', 20, 0, 4],
  351. [null, 'desc', 2, 3, 4],
  352. [1, 'asc', 20, 2, 4],
  353. [1, 'asc', 2, 2, 3],
  354. [3, 'desc', 20, 0, 2],
  355. [3, 'desc', 2, 1, 2],
  356. ];
  357. }
  358. public function invalidCreateArgsProvider() {
  359. return [
  360. ['', 'aId-1', 'oType-1', 'oId-1'],
  361. ['aType-1', '', 'oType-1', 'oId-1'],
  362. ['aType-1', 'aId-1', '', 'oId-1'],
  363. ['aType-1', 'aId-1', 'oType-1', ''],
  364. [1, 'aId-1', 'oType-1', 'oId-1'],
  365. ['aType-1', 1, 'oType-1', 'oId-1'],
  366. ['aType-1', 'aId-1', 1, 'oId-1'],
  367. ['aType-1', 'aId-1', 'oType-1', 1],
  368. ];
  369. }
  370. /**
  371. * @dataProvider invalidCreateArgsProvider
  372. * @param string $aType
  373. * @param string $aId
  374. * @param string $oType
  375. * @param string $oId
  376. */
  377. public function testCreateCommentInvalidArguments($aType, $aId, $oType, $oId) {
  378. $this->expectException(\InvalidArgumentException::class);
  379. $manager = $this->getManager();
  380. $manager->create($aType, $aId, $oType, $oId);
  381. }
  382. public function testCreateComment() {
  383. $actorType = 'bot';
  384. $actorId = 'bob';
  385. $objectType = 'weather';
  386. $objectId = 'bielefeld';
  387. $comment = $this->getManager()->create($actorType, $actorId, $objectType, $objectId);
  388. $this->assertTrue($comment instanceof IComment);
  389. $this->assertSame($comment->getActorType(), $actorType);
  390. $this->assertSame($comment->getActorId(), $actorId);
  391. $this->assertSame($comment->getObjectType(), $objectType);
  392. $this->assertSame($comment->getObjectId(), $objectId);
  393. }
  394. public function testDelete() {
  395. $this->expectException(\OCP\Comments\NotFoundException::class);
  396. $manager = $this->getManager();
  397. $done = $manager->delete('404');
  398. $this->assertFalse($done);
  399. $done = $manager->delete('%');
  400. $this->assertFalse($done);
  401. $done = $manager->delete('');
  402. $this->assertFalse($done);
  403. $id = strval($this->addDatabaseEntry(0, 0));
  404. $comment = $manager->get($id);
  405. $this->assertTrue($comment instanceof IComment);
  406. $done = $manager->delete($id);
  407. $this->assertTrue($done);
  408. $manager->get($id);
  409. }
  410. /**
  411. * @dataProvider providerTestSave
  412. */
  413. public function testSave(string $message, string $actorId, string $verb, ?string $parentId, ?string $id = ''): IComment {
  414. $manager = $this->getManager();
  415. $comment = new Comment();
  416. $comment
  417. ->setId($id)
  418. ->setActor('users', $actorId)
  419. ->setObject('files', 'file64')
  420. ->setMessage($message)
  421. ->setVerb($verb);
  422. if ($parentId) {
  423. $comment->setParentId($parentId);
  424. }
  425. $saveSuccessful = $manager->save($comment);
  426. $this->assertTrue($saveSuccessful);
  427. $this->assertTrue($comment->getId() !== '');
  428. $this->assertTrue($comment->getId() !== '0');
  429. $this->assertTrue(!is_null($comment->getCreationDateTime()));
  430. $loadedComment = $manager->get($comment->getId());
  431. $this->assertSame($comment->getMessage(), $loadedComment->getMessage());
  432. $this->assertEquals($comment->getCreationDateTime()->getTimestamp(), $loadedComment->getCreationDateTime()->getTimestamp());
  433. return $comment;
  434. }
  435. public function providerTestSave(): array {
  436. return [
  437. ['very beautiful, I am impressed!', 'alice', 'comment', null]
  438. ];
  439. }
  440. public function testSaveUpdate() {
  441. $manager = $this->getManager();
  442. $comment = new Comment();
  443. $comment
  444. ->setActor('users', 'alice')
  445. ->setObject('files', 'file64')
  446. ->setMessage('very beautiful, I am impressed!')
  447. ->setVerb('comment')
  448. ->setExpireDate(new \DateTime('+2 hours'));
  449. $manager->save($comment);
  450. $loadedComment = $manager->get($comment->getId());
  451. // Compare current object with database values
  452. $this->assertSame($comment->getMessage(), $loadedComment->getMessage());
  453. $this->assertSame(
  454. $comment->getExpireDate()->format('Y-m-d H:i:s'),
  455. $loadedComment->getExpireDate()->format('Y-m-d H:i:s')
  456. );
  457. // Preserve the original comment to compare after update
  458. $original = clone $comment;
  459. // Update values
  460. $comment->setMessage('very beautiful, I am really so much impressed!')
  461. ->setExpireDate(new \DateTime('+1 hours'));
  462. $manager->save($comment);
  463. $loadedComment = $manager->get($comment->getId());
  464. // Compare current object with database values
  465. $this->assertSame($comment->getMessage(), $loadedComment->getMessage());
  466. $this->assertSame(
  467. $comment->getExpireDate()->format('Y-m-d H:i:s'),
  468. $loadedComment->getExpireDate()->format('Y-m-d H:i:s')
  469. );
  470. // Compare original object with database values
  471. $this->assertNotSame($original->getMessage(), $loadedComment->getMessage());
  472. $this->assertNotSame(
  473. $original->getExpireDate()->format('Y-m-d H:i:s'),
  474. $loadedComment->getExpireDate()->format('Y-m-d H:i:s')
  475. );
  476. }
  477. public function testSaveUpdateException() {
  478. $this->expectException(\OCP\Comments\NotFoundException::class);
  479. $manager = $this->getManager();
  480. $comment = new Comment();
  481. $comment
  482. ->setActor('users', 'alice')
  483. ->setObject('files', 'file64')
  484. ->setMessage('very beautiful, I am impressed!')
  485. ->setVerb('comment');
  486. $manager->save($comment);
  487. $manager->delete($comment->getId());
  488. $comment->setMessage('very beautiful, I am really so much impressed!');
  489. $manager->save($comment);
  490. }
  491. public function testSaveIncomplete() {
  492. $this->expectException(\UnexpectedValueException::class);
  493. $manager = $this->getManager();
  494. $comment = new Comment();
  495. $comment->setMessage('from no one to nothing');
  496. $manager->save($comment);
  497. }
  498. public function testSaveAsChild() {
  499. $id = $this->addDatabaseEntry(0, 0);
  500. $manager = $this->getManager();
  501. for ($i = 0; $i < 3; $i++) {
  502. $comment = new Comment();
  503. $comment
  504. ->setActor('users', 'alice')
  505. ->setObject('files', 'file64')
  506. ->setParentId(strval($id))
  507. ->setMessage('full ack')
  508. ->setVerb('comment')
  509. // setting the creation time avoids using sleep() while making sure to test with different timestamps
  510. ->setCreationDateTime(new \DateTime('+' . $i . ' minutes'));
  511. $manager->save($comment);
  512. $this->assertSame($comment->getTopmostParentId(), strval($id));
  513. $parentComment = $manager->get(strval($id));
  514. $this->assertSame($parentComment->getChildrenCount(), $i + 1);
  515. $this->assertEquals($parentComment->getLatestChildDateTime()->getTimestamp(), $comment->getCreationDateTime()->getTimestamp());
  516. }
  517. }
  518. public function invalidActorArgsProvider() {
  519. return
  520. [
  521. ['', ''],
  522. [1, 'alice'],
  523. ['users', 1],
  524. ];
  525. }
  526. /**
  527. * @dataProvider invalidActorArgsProvider
  528. * @param string $type
  529. * @param string $id
  530. */
  531. public function testDeleteReferencesOfActorInvalidInput($type, $id) {
  532. $this->expectException(\InvalidArgumentException::class);
  533. $manager = $this->getManager();
  534. $manager->deleteReferencesOfActor($type, $id);
  535. }
  536. public function testDeleteReferencesOfActor() {
  537. $ids = [];
  538. $ids[] = $this->addDatabaseEntry(0, 0);
  539. $ids[] = $this->addDatabaseEntry(0, 0);
  540. $ids[] = $this->addDatabaseEntry(0, 0);
  541. $manager = $this->getManager();
  542. // just to make sure they are really set, with correct actor data
  543. $comment = $manager->get(strval($ids[1]));
  544. $this->assertSame($comment->getActorType(), 'users');
  545. $this->assertSame($comment->getActorId(), 'alice');
  546. $wasSuccessful = $manager->deleteReferencesOfActor('users', 'alice');
  547. $this->assertTrue($wasSuccessful);
  548. foreach ($ids as $id) {
  549. $comment = $manager->get(strval($id));
  550. $this->assertSame($comment->getActorType(), ICommentsManager::DELETED_USER);
  551. $this->assertSame($comment->getActorId(), ICommentsManager::DELETED_USER);
  552. }
  553. // actor info is gone from DB, but when database interaction is alright,
  554. // we still expect to get true back
  555. $wasSuccessful = $manager->deleteReferencesOfActor('users', 'alice');
  556. $this->assertTrue($wasSuccessful);
  557. }
  558. public function testDeleteReferencesOfActorWithUserManagement() {
  559. $user = \OC::$server->getUserManager()->createUser('xenia', '123456');
  560. $this->assertTrue($user instanceof IUser);
  561. $manager = \OC::$server->get(ICommentsManager::class);
  562. $comment = $manager->create('users', $user->getUID(), 'files', 'file64');
  563. $comment
  564. ->setMessage('Most important comment I ever left on the Internet.')
  565. ->setVerb('comment');
  566. $status = $manager->save($comment);
  567. $this->assertTrue($status);
  568. $commentID = $comment->getId();
  569. $user->delete();
  570. $comment = $manager->get($commentID);
  571. $this->assertSame($comment->getActorType(), ICommentsManager::DELETED_USER);
  572. $this->assertSame($comment->getActorId(), ICommentsManager::DELETED_USER);
  573. }
  574. public function invalidObjectArgsProvider() {
  575. return
  576. [
  577. ['', ''],
  578. [1, 'file64'],
  579. ['files', 1],
  580. ];
  581. }
  582. /**
  583. * @dataProvider invalidObjectArgsProvider
  584. * @param string $type
  585. * @param string $id
  586. */
  587. public function testDeleteCommentsAtObjectInvalidInput($type, $id) {
  588. $this->expectException(\InvalidArgumentException::class);
  589. $manager = $this->getManager();
  590. $manager->deleteCommentsAtObject($type, $id);
  591. }
  592. public function testDeleteCommentsAtObject() {
  593. $ids = [];
  594. $ids[] = $this->addDatabaseEntry(0, 0);
  595. $ids[] = $this->addDatabaseEntry(0, 0);
  596. $ids[] = $this->addDatabaseEntry(0, 0);
  597. $manager = $this->getManager();
  598. // just to make sure they are really set, with correct actor data
  599. $comment = $manager->get(strval($ids[1]));
  600. $this->assertSame($comment->getObjectType(), 'files');
  601. $this->assertSame($comment->getObjectId(), 'file64');
  602. $wasSuccessful = $manager->deleteCommentsAtObject('files', 'file64');
  603. $this->assertTrue($wasSuccessful);
  604. $verified = 0;
  605. foreach ($ids as $id) {
  606. try {
  607. $manager->get(strval($id));
  608. } catch (NotFoundException $e) {
  609. $verified++;
  610. }
  611. }
  612. $this->assertSame($verified, 3);
  613. // actor info is gone from DB, but when database interaction is alright,
  614. // we still expect to get true back
  615. $wasSuccessful = $manager->deleteCommentsAtObject('files', 'file64');
  616. $this->assertTrue($wasSuccessful);
  617. }
  618. public function testDeleteCommentsExpiredAtObjectTypeAndId(): void {
  619. $ids = [];
  620. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('+2 hours'));
  621. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('+2 hours'));
  622. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('+2 hours'));
  623. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('-2 hours'));
  624. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('-2 hours'));
  625. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('-2 hours'));
  626. $manager = new Manager(
  627. $this->connection,
  628. $this->createMock(LoggerInterface::class),
  629. $this->createMock(IConfig::class),
  630. Server::get(ITimeFactory::class),
  631. new EmojiHelper($this->connection),
  632. $this->createMock(IInitialStateService::class),
  633. $this->rootFolder,
  634. );
  635. // just to make sure they are really set, with correct actor data
  636. $comment = $manager->get((string) $ids[1]);
  637. $this->assertSame($comment->getObjectType(), 'files');
  638. $this->assertSame($comment->getObjectId(), 'file64');
  639. $deleted = $manager->deleteCommentsExpiredAtObject('files', 'file64');
  640. $this->assertTrue($deleted);
  641. $deleted = 0;
  642. $exists = 0;
  643. foreach ($ids as $id) {
  644. try {
  645. $manager->get((string) $id);
  646. $exists++;
  647. } catch (NotFoundException $e) {
  648. $deleted++;
  649. }
  650. }
  651. $this->assertSame($exists, 3);
  652. $this->assertSame($deleted, 3);
  653. // actor info is gone from DB, but when database interaction is alright,
  654. // we still expect to get true back
  655. $deleted = $manager->deleteCommentsExpiredAtObject('files', 'file64');
  656. $this->assertFalse($deleted);
  657. }
  658. public function testDeleteCommentsExpiredAtObjectType(): void {
  659. $ids = [];
  660. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file1', new \DateTime('-2 hours'));
  661. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file2', new \DateTime('-2 hours'));
  662. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime('-2 hours'));
  663. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime());
  664. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime());
  665. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime());
  666. $manager = new Manager(
  667. $this->connection,
  668. $this->createMock(LoggerInterface::class),
  669. $this->createMock(IConfig::class),
  670. Server::get(ITimeFactory::class),
  671. new EmojiHelper($this->connection),
  672. $this->createMock(IInitialStateService::class),
  673. $this->rootFolder,
  674. );
  675. $deleted = $manager->deleteCommentsExpiredAtObject('files');
  676. $this->assertTrue($deleted);
  677. $deleted = 0;
  678. $exists = 0;
  679. foreach ($ids as $id) {
  680. try {
  681. $manager->get((string) $id);
  682. $exists++;
  683. } catch (NotFoundException $e) {
  684. $deleted++;
  685. }
  686. }
  687. $this->assertSame($exists, 0);
  688. $this->assertSame($deleted, 6);
  689. // actor info is gone from DB, but when database interaction is alright,
  690. // we still expect to get true back
  691. $deleted = $manager->deleteCommentsExpiredAtObject('files');
  692. $this->assertFalse($deleted);
  693. }
  694. public function testSetMarkRead() {
  695. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  696. $user = $this->createMock(IUser::class);
  697. $user->expects($this->any())
  698. ->method('getUID')
  699. ->willReturn('alice');
  700. $dateTimeSet = new \DateTime();
  701. $manager = $this->getManager();
  702. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  703. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  704. $this->assertEquals($dateTimeGet->getTimestamp(), $dateTimeSet->getTimestamp());
  705. }
  706. public function testSetMarkReadUpdate() {
  707. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  708. $user = $this->createMock(IUser::class);
  709. $user->expects($this->any())
  710. ->method('getUID')
  711. ->willReturn('alice');
  712. $dateTimeSet = new \DateTime('yesterday');
  713. $manager = $this->getManager();
  714. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  715. $dateTimeSet = new \DateTime('today');
  716. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  717. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  718. $this->assertEquals($dateTimeGet, $dateTimeSet);
  719. }
  720. public function testReadMarkDeleteUser() {
  721. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  722. $user = $this->createMock(IUser::class);
  723. $user->expects($this->any())
  724. ->method('getUID')
  725. ->willReturn('alice');
  726. $dateTimeSet = new \DateTime();
  727. $manager = $this->getManager();
  728. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  729. $manager->deleteReadMarksFromUser($user);
  730. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  731. $this->assertNull($dateTimeGet);
  732. }
  733. public function testReadMarkDeleteObject() {
  734. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  735. $user = $this->createMock(IUser::class);
  736. $user->expects($this->any())
  737. ->method('getUID')
  738. ->willReturn('alice');
  739. $dateTimeSet = new \DateTime();
  740. $manager = $this->getManager();
  741. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  742. $manager->deleteReadMarksOnObject('robot', '36');
  743. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  744. $this->assertNull($dateTimeGet);
  745. }
  746. public function testSendEvent() {
  747. $handler1 = $this->getMockBuilder(ICommentsEventHandler::class)->getMock();
  748. $handler1->expects($this->exactly(4))
  749. ->method('handle');
  750. $handler2 = $this->getMockBuilder(ICommentsEventHandler::class)->getMock();
  751. $handler1->expects($this->exactly(4))
  752. ->method('handle');
  753. $manager = $this->getManager();
  754. $manager->registerEventHandler(function () use ($handler1) {
  755. return $handler1;
  756. });
  757. $manager->registerEventHandler(function () use ($handler2) {
  758. return $handler2;
  759. });
  760. $comment = new Comment();
  761. $comment
  762. ->setActor('users', 'alice')
  763. ->setObject('files', 'file64')
  764. ->setMessage('very beautiful, I am impressed!')
  765. ->setVerb('comment');
  766. // Add event
  767. $manager->save($comment);
  768. // Update event
  769. $comment->setMessage('Different topic');
  770. $manager->save($comment);
  771. // Delete event
  772. $manager->delete($comment->getId());
  773. }
  774. public function testResolveDisplayName() {
  775. $manager = $this->getManager();
  776. $planetClosure = function ($name) {
  777. return ucfirst($name);
  778. };
  779. $galaxyClosure = function ($name) {
  780. return strtoupper($name);
  781. };
  782. $manager->registerDisplayNameResolver('planet', $planetClosure);
  783. $manager->registerDisplayNameResolver('galaxy', $galaxyClosure);
  784. $this->assertSame('Neptune', $manager->resolveDisplayName('planet', 'neptune'));
  785. $this->assertSame('SOMBRERO', $manager->resolveDisplayName('galaxy', 'sombrero'));
  786. }
  787. public function testRegisterResolverDuplicate() {
  788. $this->expectException(\OutOfBoundsException::class);
  789. $manager = $this->getManager();
  790. $planetClosure = function ($name) {
  791. return ucfirst($name);
  792. };
  793. $manager->registerDisplayNameResolver('planet', $planetClosure);
  794. $manager->registerDisplayNameResolver('planet', $planetClosure);
  795. }
  796. public function testRegisterResolverInvalidType() {
  797. $this->expectException(\InvalidArgumentException::class);
  798. $manager = $this->getManager();
  799. $planetClosure = function ($name) {
  800. return ucfirst($name);
  801. };
  802. $manager->registerDisplayNameResolver(1337, $planetClosure);
  803. }
  804. public function testResolveDisplayNameUnregisteredType() {
  805. $this->expectException(\OutOfBoundsException::class);
  806. $manager = $this->getManager();
  807. $planetClosure = function ($name) {
  808. return ucfirst($name);
  809. };
  810. $manager->registerDisplayNameResolver('planet', $planetClosure);
  811. $manager->resolveDisplayName('galaxy', 'sombrero');
  812. }
  813. public function testResolveDisplayNameDirtyResolver() {
  814. $manager = $this->getManager();
  815. $planetClosure = function () {
  816. return null;
  817. };
  818. $manager->registerDisplayNameResolver('planet', $planetClosure);
  819. $this->assertTrue(is_string($manager->resolveDisplayName('planet', 'neptune')));
  820. }
  821. private function skipIfNotSupport4ByteUTF() {
  822. if (!$this->getManager()->supportReactions()) {
  823. $this->markTestSkipped('MySQL doesn\'t support 4 byte UTF-8');
  824. }
  825. }
  826. /**
  827. * @dataProvider providerTestReactionAddAndDelete
  828. *
  829. * @param IComment[] $comments
  830. * @param array $reactionsExpected
  831. * @return void
  832. */
  833. public function testReactionAddAndDelete(array $comments, array $reactionsExpected) {
  834. $this->skipIfNotSupport4ByteUTF();
  835. $manager = $this->getManager();
  836. $processedComments = $this->proccessComments($comments);
  837. $comment = end($processedComments);
  838. if ($comment->getParentId()) {
  839. $parent = $manager->get($comment->getParentId());
  840. $this->assertEqualsCanonicalizing($reactionsExpected, $parent->getReactions());
  841. }
  842. }
  843. public function providerTestReactionAddAndDelete(): array {
  844. return[
  845. [
  846. [
  847. ['message', 'alice', 'comment', null],
  848. ], [],
  849. ],
  850. [
  851. [
  852. ['message', 'alice', 'comment', null],
  853. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  854. ], ['๐Ÿ‘' => 1],
  855. ],
  856. [
  857. [
  858. ['message', 'alice', 'comment', null],
  859. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  860. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  861. ], ['๐Ÿ‘' => 1],
  862. ],
  863. [
  864. [
  865. ['message', 'alice', 'comment', null],
  866. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  867. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  868. ], ['๐Ÿ‘' => 2],
  869. ],
  870. [
  871. [
  872. ['message', 'alice', 'comment', null],
  873. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  874. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  875. ['๐Ÿ‘', 'frank', 'reaction_deleted', 'message#alice'],
  876. ], ['๐Ÿ‘' => 1],
  877. ],
  878. [
  879. [
  880. ['message', 'alice', 'comment', null],
  881. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  882. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  883. ['๐Ÿ‘', 'alice', 'reaction_deleted', 'message#alice'],
  884. ['๐Ÿ‘', 'frank', 'reaction_deleted', 'message#alice'],
  885. ], [],
  886. ],
  887. ];
  888. }
  889. public function testResolveDisplayNameInvalidType() {
  890. $this->expectException(\InvalidArgumentException::class);
  891. $manager = $this->getManager();
  892. $planetClosure = function () {
  893. return null;
  894. };
  895. $manager->registerDisplayNameResolver('planet', $planetClosure);
  896. $this->assertTrue(is_string($manager->resolveDisplayName(1337, 'neptune')));
  897. }
  898. /**
  899. * @param array $data
  900. * @return IComment[]
  901. */
  902. private function proccessComments(array $data): array {
  903. /** @var IComment[] */
  904. $comments = [];
  905. foreach ($data as $comment) {
  906. [$message, $actorId, $verb, $parentText] = $comment;
  907. $parentId = null;
  908. if ($parentText) {
  909. $parentId = (string) $comments[$parentText]->getId();
  910. }
  911. $id = '';
  912. if ($verb === 'reaction_deleted') {
  913. $id = $comments[$message . '#' . $actorId]->getId();
  914. }
  915. $comment = $this->testSave($message, $actorId, $verb, $parentId, $id);
  916. $comments[$comment->getMessage() . '#' . $comment->getActorId()] = $comment;
  917. }
  918. return $comments;
  919. }
  920. /**
  921. * @dataProvider providerTestRetrieveAllReactions
  922. */
  923. public function testRetrieveAllReactions(array $comments, array $expected) {
  924. $this->skipIfNotSupport4ByteUTF();
  925. $manager = $this->getManager();
  926. $processedComments = $this->proccessComments($comments);
  927. $comment = reset($processedComments);
  928. $all = $manager->retrieveAllReactions($comment->getId());
  929. $actual = array_map(function ($row) {
  930. return [
  931. 'message' => $row->getMessage(),
  932. 'actorId' => $row->getActorId(),
  933. ];
  934. }, $all);
  935. $this->assertEqualsCanonicalizing($expected, $actual);
  936. }
  937. public function providerTestRetrieveAllReactions(): array {
  938. return [
  939. [
  940. [
  941. ['message', 'alice', 'comment', null],
  942. ],
  943. [],
  944. ],
  945. [
  946. [
  947. ['message', 'alice', 'comment', null],
  948. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  949. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  950. ],
  951. [
  952. ['๐Ÿ‘', 'alice'],
  953. ['๐Ÿ‘', 'frank'],
  954. ],
  955. ],
  956. [
  957. [
  958. ['message', 'alice', 'comment', null],
  959. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  960. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  961. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  962. ],
  963. [
  964. ['๐Ÿ‘', 'alice'],
  965. ['๐Ÿ‘', 'frank'],
  966. ],
  967. ],
  968. [# 600 reactions to cover chunk size when retrieve comments of reactions.
  969. [
  970. ['message', 'alice', 'comment', null],
  971. ['๐Ÿ˜€', 'alice', 'reaction', 'message#alice'],
  972. ['๐Ÿ˜ƒ', 'alice', 'reaction', 'message#alice'],
  973. ['๐Ÿ˜„', 'alice', 'reaction', 'message#alice'],
  974. ['๐Ÿ˜', 'alice', 'reaction', 'message#alice'],
  975. ['๐Ÿ˜†', 'alice', 'reaction', 'message#alice'],
  976. ['๐Ÿ˜…', 'alice', 'reaction', 'message#alice'],
  977. ['๐Ÿ˜‚', 'alice', 'reaction', 'message#alice'],
  978. ['๐Ÿคฃ', 'alice', 'reaction', 'message#alice'],
  979. ['๐Ÿฅฒ', 'alice', 'reaction', 'message#alice'],
  980. ['๐Ÿฅน', 'alice', 'reaction', 'message#alice'],
  981. ['โ˜บ๏ธ', 'alice', 'reaction', 'message#alice'],
  982. ['๐Ÿ˜Š', 'alice', 'reaction', 'message#alice'],
  983. ['๐Ÿ˜‡', 'alice', 'reaction', 'message#alice'],
  984. ['๐Ÿ™‚', 'alice', 'reaction', 'message#alice'],
  985. ['๐Ÿ™ƒ', 'alice', 'reaction', 'message#alice'],
  986. ['๐Ÿ˜‰', 'alice', 'reaction', 'message#alice'],
  987. ['๐Ÿ˜Œ', 'alice', 'reaction', 'message#alice'],
  988. ['๐Ÿ˜', 'alice', 'reaction', 'message#alice'],
  989. ['๐Ÿฅฐ', 'alice', 'reaction', 'message#alice'],
  990. ['๐Ÿ˜˜', 'alice', 'reaction', 'message#alice'],
  991. ['๐Ÿ˜—', 'alice', 'reaction', 'message#alice'],
  992. ['๐Ÿ˜™', 'alice', 'reaction', 'message#alice'],
  993. ['๐Ÿ˜š', 'alice', 'reaction', 'message#alice'],
  994. ['๐Ÿ˜‹', 'alice', 'reaction', 'message#alice'],
  995. ['๐Ÿ˜›', 'alice', 'reaction', 'message#alice'],
  996. ['๐Ÿ˜', 'alice', 'reaction', 'message#alice'],
  997. ['๐Ÿ˜œ', 'alice', 'reaction', 'message#alice'],
  998. ['๐Ÿคช', 'alice', 'reaction', 'message#alice'],
  999. ['๐Ÿคจ', 'alice', 'reaction', 'message#alice'],
  1000. ['๐Ÿง', 'alice', 'reaction', 'message#alice'],
  1001. ['๐Ÿค“', 'alice', 'reaction', 'message#alice'],
  1002. ['๐Ÿ˜Ž', 'alice', 'reaction', 'message#alice'],
  1003. ['๐Ÿฅธ', 'alice', 'reaction', 'message#alice'],
  1004. ['๐Ÿคฉ', 'alice', 'reaction', 'message#alice'],
  1005. ['๐Ÿฅณ', 'alice', 'reaction', 'message#alice'],
  1006. ['๐Ÿ˜', 'alice', 'reaction', 'message#alice'],
  1007. ['๐Ÿ˜’', 'alice', 'reaction', 'message#alice'],
  1008. ['๐Ÿ˜ž', 'alice', 'reaction', 'message#alice'],
  1009. ['๐Ÿ˜”', 'alice', 'reaction', 'message#alice'],
  1010. ['๐Ÿ˜Ÿ', 'alice', 'reaction', 'message#alice'],
  1011. ['๐Ÿ˜•', 'alice', 'reaction', 'message#alice'],
  1012. ['๐Ÿ™', 'alice', 'reaction', 'message#alice'],
  1013. ['โ˜น๏ธ', 'alice', 'reaction', 'message#alice'],
  1014. ['๐Ÿ˜ฃ', 'alice', 'reaction', 'message#alice'],
  1015. ['๐Ÿ˜–', 'alice', 'reaction', 'message#alice'],
  1016. ['๐Ÿ˜ซ', 'alice', 'reaction', 'message#alice'],
  1017. ['๐Ÿ˜ฉ', 'alice', 'reaction', 'message#alice'],
  1018. ['๐Ÿฅบ', 'alice', 'reaction', 'message#alice'],
  1019. ['๐Ÿ˜ข', 'alice', 'reaction', 'message#alice'],
  1020. ['๐Ÿ˜ญ', 'alice', 'reaction', 'message#alice'],
  1021. ['๐Ÿ˜ฎโ€๐Ÿ’จ', 'alice', 'reaction', 'message#alice'],
  1022. ['๐Ÿ˜ค', 'alice', 'reaction', 'message#alice'],
  1023. ['๐Ÿ˜ ', 'alice', 'reaction', 'message#alice'],
  1024. ['๐Ÿ˜ก', 'alice', 'reaction', 'message#alice'],
  1025. ['๐Ÿคฌ', 'alice', 'reaction', 'message#alice'],
  1026. ['๐Ÿคฏ', 'alice', 'reaction', 'message#alice'],
  1027. ['๐Ÿ˜ณ', 'alice', 'reaction', 'message#alice'],
  1028. ['๐Ÿฅต', 'alice', 'reaction', 'message#alice'],
  1029. ['๐Ÿฅถ', 'alice', 'reaction', 'message#alice'],
  1030. ['๐Ÿ˜ฑ', 'alice', 'reaction', 'message#alice'],
  1031. ['๐Ÿ˜จ', 'alice', 'reaction', 'message#alice'],
  1032. ['๐Ÿ˜ฐ', 'alice', 'reaction', 'message#alice'],
  1033. ['๐Ÿ˜ฅ', 'alice', 'reaction', 'message#alice'],
  1034. ['๐Ÿ˜“', 'alice', 'reaction', 'message#alice'],
  1035. ['๐Ÿซฃ', 'alice', 'reaction', 'message#alice'],
  1036. ['๐Ÿค—', 'alice', 'reaction', 'message#alice'],
  1037. ['๐Ÿซก', 'alice', 'reaction', 'message#alice'],
  1038. ['๐Ÿค”', 'alice', 'reaction', 'message#alice'],
  1039. ['๐Ÿซข', 'alice', 'reaction', 'message#alice'],
  1040. ['๐Ÿคญ', 'alice', 'reaction', 'message#alice'],
  1041. ['๐Ÿคซ', 'alice', 'reaction', 'message#alice'],
  1042. ['๐Ÿคฅ', 'alice', 'reaction', 'message#alice'],
  1043. ['๐Ÿ˜ถ', 'alice', 'reaction', 'message#alice'],
  1044. ['๐Ÿ˜ถโ€๐ŸŒซ๏ธ', 'alice', 'reaction', 'message#alice'],
  1045. ['๐Ÿ˜', 'alice', 'reaction', 'message#alice'],
  1046. ['๐Ÿ˜‘', 'alice', 'reaction', 'message#alice'],
  1047. ['๐Ÿ˜ฌ', 'alice', 'reaction', 'message#alice'],
  1048. ['๐Ÿซ ', 'alice', 'reaction', 'message#alice'],
  1049. ['๐Ÿ™„', 'alice', 'reaction', 'message#alice'],
  1050. ['๐Ÿ˜ฏ', 'alice', 'reaction', 'message#alice'],
  1051. ['๐Ÿ˜ฆ', 'alice', 'reaction', 'message#alice'],
  1052. ['๐Ÿ˜ง', 'alice', 'reaction', 'message#alice'],
  1053. ['๐Ÿ˜ฎ', 'alice', 'reaction', 'message#alice'],
  1054. ['๐Ÿ˜ฒ', 'alice', 'reaction', 'message#alice'],
  1055. ['๐Ÿฅฑ', 'alice', 'reaction', 'message#alice'],
  1056. ['๐Ÿ˜ด', 'alice', 'reaction', 'message#alice'],
  1057. ['๐Ÿคค', 'alice', 'reaction', 'message#alice'],
  1058. ['๐Ÿ˜ช', 'alice', 'reaction', 'message#alice'],
  1059. ['๐Ÿ˜ต', 'alice', 'reaction', 'message#alice'],
  1060. ['๐Ÿ˜ตโ€๐Ÿ’ซ', 'alice', 'reaction', 'message#alice'],
  1061. ['๐Ÿซฅ', 'alice', 'reaction', 'message#alice'],
  1062. ['๐Ÿค', 'alice', 'reaction', 'message#alice'],
  1063. ['๐Ÿฅด', 'alice', 'reaction', 'message#alice'],
  1064. ['๐Ÿคข', 'alice', 'reaction', 'message#alice'],
  1065. ['๐Ÿคฎ', 'alice', 'reaction', 'message#alice'],
  1066. ['๐Ÿคง', 'alice', 'reaction', 'message#alice'],
  1067. ['๐Ÿ˜ท', 'alice', 'reaction', 'message#alice'],
  1068. ['๐Ÿค’', 'alice', 'reaction', 'message#alice'],
  1069. ['๐Ÿค•', 'alice', 'reaction', 'message#alice'],
  1070. ['๐Ÿค‘', 'alice', 'reaction', 'message#alice'],
  1071. ['๐Ÿค ', 'alice', 'reaction', 'message#alice'],
  1072. ['๐Ÿ˜ˆ', 'alice', 'reaction', 'message#alice'],
  1073. ['๐Ÿ‘ฟ', 'alice', 'reaction', 'message#alice'],
  1074. ['๐Ÿ‘น', 'alice', 'reaction', 'message#alice'],
  1075. ['๐Ÿ‘บ', 'alice', 'reaction', 'message#alice'],
  1076. ['๐Ÿคก', 'alice', 'reaction', 'message#alice'],
  1077. ['๐Ÿ’ฉ', 'alice', 'reaction', 'message#alice'],
  1078. ['๐Ÿ‘ป', 'alice', 'reaction', 'message#alice'],
  1079. ['๐Ÿ’€', 'alice', 'reaction', 'message#alice'],
  1080. ['โ˜ ๏ธ', 'alice', 'reaction', 'message#alice'],
  1081. ['๐Ÿ‘ฝ', 'alice', 'reaction', 'message#alice'],
  1082. ['๐Ÿ‘พ', 'alice', 'reaction', 'message#alice'],
  1083. ['๐Ÿค–', 'alice', 'reaction', 'message#alice'],
  1084. ['๐ŸŽƒ', 'alice', 'reaction', 'message#alice'],
  1085. ['๐Ÿ˜บ', 'alice', 'reaction', 'message#alice'],
  1086. ['๐Ÿ˜ธ', 'alice', 'reaction', 'message#alice'],
  1087. ['๐Ÿ˜น', 'alice', 'reaction', 'message#alice'],
  1088. ['๐Ÿ˜ป', 'alice', 'reaction', 'message#alice'],
  1089. ['๐Ÿ˜ผ', 'alice', 'reaction', 'message#alice'],
  1090. ['๐Ÿ˜ฝ', 'alice', 'reaction', 'message#alice'],
  1091. ['๐Ÿ™€', 'alice', 'reaction', 'message#alice'],
  1092. ['๐Ÿ˜ฟ', 'alice', 'reaction', 'message#alice'],
  1093. ['๐Ÿ˜พ', 'alice', 'reaction', 'message#alice'],
  1094. ['๐Ÿ‘ถ', 'alice', 'reaction', 'message#alice'],
  1095. ['๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1096. ['๐Ÿง’', 'alice', 'reaction', 'message#alice'],
  1097. ['๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1098. ['๐Ÿ‘ฉ', 'alice', 'reaction', 'message#alice'],
  1099. ['๐Ÿง‘', 'alice', 'reaction', 'message#alice'],
  1100. ['๐Ÿ‘จ', 'alice', 'reaction', 'message#alice'],
  1101. ['๐Ÿ‘ฉโ€๐Ÿฆฑ', 'alice', 'reaction', 'message#alice'],
  1102. ['๐Ÿง‘โ€๐Ÿฆฑ', 'alice', 'reaction', 'message#alice'],
  1103. ['๐Ÿ‘จโ€๐Ÿฆฑ', 'alice', 'reaction', 'message#alice'],
  1104. ['๐Ÿ‘ฉโ€๐Ÿฆฐ', 'alice', 'reaction', 'message#alice'],
  1105. ['๐Ÿง‘โ€๐Ÿฆฐ', 'alice', 'reaction', 'message#alice'],
  1106. ['๐Ÿ‘จโ€๐Ÿฆฐ', 'alice', 'reaction', 'message#alice'],
  1107. ['๐Ÿ‘ฑโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1108. ['๐Ÿ‘ฑ', 'alice', 'reaction', 'message#alice'],
  1109. ['๐Ÿ‘ฑโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1110. ['๐Ÿ‘ฉโ€๐Ÿฆณ', 'alice', 'reaction', 'message#alice'],
  1111. ['๐Ÿง‘โ€๐Ÿฆณ', 'alice', 'reaction', 'message#alice'],
  1112. ['๐Ÿ‘จโ€๐Ÿฆณ', 'alice', 'reaction', 'message#alice'],
  1113. ['๐Ÿ‘ฉโ€๐Ÿฆฒ', 'alice', 'reaction', 'message#alice'],
  1114. ['๐Ÿง‘โ€๐Ÿฆฒ', 'alice', 'reaction', 'message#alice'],
  1115. ['๐Ÿ‘จโ€๐Ÿฆฒ', 'alice', 'reaction', 'message#alice'],
  1116. ['๐Ÿง”โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1117. ['๐Ÿง”', 'alice', 'reaction', 'message#alice'],
  1118. ['๐Ÿง”โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1119. ['๐Ÿ‘ต', 'alice', 'reaction', 'message#alice'],
  1120. ['๐Ÿง“', 'alice', 'reaction', 'message#alice'],
  1121. ['๐Ÿ‘ด', 'alice', 'reaction', 'message#alice'],
  1122. ['๐Ÿ‘ฒ', 'alice', 'reaction', 'message#alice'],
  1123. ['๐Ÿ‘ณโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1124. ['๐Ÿ‘ณ', 'alice', 'reaction', 'message#alice'],
  1125. ['๐Ÿ‘ณโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1126. ['๐Ÿง•', 'alice', 'reaction', 'message#alice'],
  1127. ['๐Ÿ‘ฎโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1128. ['๐Ÿ‘ฎ', 'alice', 'reaction', 'message#alice'],
  1129. ['๐Ÿ‘ฎโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1130. ['๐Ÿ‘ทโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1131. ['๐Ÿ‘ท', 'alice', 'reaction', 'message#alice'],
  1132. ['๐Ÿ‘ทโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1133. ['๐Ÿ’‚โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1134. ['๐Ÿ’‚', 'alice', 'reaction', 'message#alice'],
  1135. ['๐Ÿ’‚โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1136. ['๐Ÿ•ต๏ธโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1137. ['๐Ÿ•ต๏ธ', 'alice', 'reaction', 'message#alice'],
  1138. ['๐Ÿ•ต๏ธโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1139. ['๐Ÿ‘ฉโ€โš•๏ธ', 'alice', 'reaction', 'message#alice'],
  1140. ['๐Ÿง‘โ€โš•๏ธ', 'alice', 'reaction', 'message#alice'],
  1141. ['๐Ÿ‘จโ€โš•๏ธ', 'alice', 'reaction', 'message#alice'],
  1142. ['๐Ÿ‘ฉโ€๐ŸŒพ', 'alice', 'reaction', 'message#alice'],
  1143. ['๐Ÿง‘โ€๐ŸŒพ', 'alice', 'reaction', 'message#alice'],
  1144. ['๐Ÿ‘จโ€๐ŸŒพ', 'alice', 'reaction', 'message#alice'],
  1145. ['๐Ÿ‘ฉโ€๐Ÿณ', 'alice', 'reaction', 'message#alice'],
  1146. ['๐Ÿง‘โ€๐Ÿณ', 'alice', 'reaction', 'message#alice'],
  1147. ['๐Ÿ‘จโ€๐Ÿณ', 'alice', 'reaction', 'message#alice'],
  1148. ['๐Ÿ‘ฉโ€๐ŸŽ“', 'alice', 'reaction', 'message#alice'],
  1149. ['๐Ÿง‘โ€๐ŸŽ“', 'alice', 'reaction', 'message#alice'],
  1150. ['๐Ÿ‘จโ€๐ŸŽ“', 'alice', 'reaction', 'message#alice'],
  1151. ['๐Ÿ‘ฉโ€๐ŸŽค', 'alice', 'reaction', 'message#alice'],
  1152. ['๐Ÿง‘โ€๐ŸŽค', 'alice', 'reaction', 'message#alice'],
  1153. ['๐Ÿ‘จโ€๐ŸŽค', 'alice', 'reaction', 'message#alice'],
  1154. ['๐Ÿ‘ฉโ€๐Ÿซ', 'alice', 'reaction', 'message#alice'],
  1155. ['๐Ÿง‘โ€๐Ÿซ', 'alice', 'reaction', 'message#alice'],
  1156. ['๐Ÿ‘จโ€๐Ÿซ', 'alice', 'reaction', 'message#alice'],
  1157. ['๐Ÿ‘ฉโ€๐Ÿญ', 'alice', 'reaction', 'message#alice'],
  1158. ['๐Ÿง‘โ€๐Ÿญ', 'alice', 'reaction', 'message#alice'],
  1159. ['๐Ÿ‘จโ€๐Ÿญ', 'alice', 'reaction', 'message#alice'],
  1160. ['๐Ÿ‘ฉโ€๐Ÿ’ป', 'alice', 'reaction', 'message#alice'],
  1161. ['๐Ÿง‘โ€๐Ÿ’ป', 'alice', 'reaction', 'message#alice'],
  1162. ['๐Ÿ‘จโ€๐Ÿ’ป', 'alice', 'reaction', 'message#alice'],
  1163. ['๐Ÿ‘ฉโ€๐Ÿ’ผ', 'alice', 'reaction', 'message#alice'],
  1164. ['๐Ÿง‘โ€๐Ÿ’ผ', 'alice', 'reaction', 'message#alice'],
  1165. ['๐Ÿ‘จโ€๐Ÿ’ผ', 'alice', 'reaction', 'message#alice'],
  1166. ['๐Ÿ‘ฉโ€๐Ÿ”ง', 'alice', 'reaction', 'message#alice'],
  1167. ['๐Ÿง‘โ€๐Ÿ”ง', 'alice', 'reaction', 'message#alice'],
  1168. ['๐Ÿ‘จโ€๐Ÿ”ง', 'alice', 'reaction', 'message#alice'],
  1169. ['๐Ÿ‘ฉโ€๐Ÿ”ฌ', 'alice', 'reaction', 'message#alice'],
  1170. ['๐Ÿง‘โ€๐Ÿ”ฌ', 'alice', 'reaction', 'message#alice'],
  1171. ['๐Ÿ‘จโ€๐Ÿ”ฌ', 'alice', 'reaction', 'message#alice'],
  1172. ['๐Ÿ‘ฉโ€๐ŸŽจ', 'alice', 'reaction', 'message#alice'],
  1173. ['๐Ÿง‘โ€๐ŸŽจ', 'alice', 'reaction', 'message#alice'],
  1174. ['๐Ÿ‘จโ€๐ŸŽจ', 'alice', 'reaction', 'message#alice'],
  1175. ['๐Ÿ‘ฉโ€๐Ÿš’', 'alice', 'reaction', 'message#alice'],
  1176. ['๐Ÿง‘โ€๐Ÿš’', 'alice', 'reaction', 'message#alice'],
  1177. ['๐Ÿ‘จโ€๐Ÿš’', 'alice', 'reaction', 'message#alice'],
  1178. ['๐Ÿ‘ฉโ€โœˆ๏ธ', 'alice', 'reaction', 'message#alice'],
  1179. ['๐Ÿง‘โ€โœˆ๏ธ', 'alice', 'reaction', 'message#alice'],
  1180. ['๐Ÿ‘จโ€โœˆ๏ธ', 'alice', 'reaction', 'message#alice'],
  1181. ['๐Ÿ‘ฉโ€๐Ÿš€', 'alice', 'reaction', 'message#alice'],
  1182. ['๐Ÿง‘โ€๐Ÿš€', 'alice', 'reaction', 'message#alice'],
  1183. ['๐Ÿ‘จโ€๐Ÿš€', 'alice', 'reaction', 'message#alice'],
  1184. ['๐Ÿ‘ฉโ€โš–๏ธ', 'alice', 'reaction', 'message#alice'],
  1185. ['๐Ÿง‘โ€โš–๏ธ', 'alice', 'reaction', 'message#alice'],
  1186. ['๐Ÿ‘จโ€โš–๏ธ', 'alice', 'reaction', 'message#alice'],
  1187. ['๐Ÿ‘ฐโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1188. ['๐Ÿ‘ฐ', 'alice', 'reaction', 'message#alice'],
  1189. ['๐Ÿ‘ฐโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1190. ['๐Ÿคตโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1191. ['๐Ÿคต', 'alice', 'reaction', 'message#alice'],
  1192. ['๐Ÿคตโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1193. ['๐Ÿ‘ธ', 'alice', 'reaction', 'message#alice'],
  1194. ['๐Ÿซ…', 'alice', 'reaction', 'message#alice'],
  1195. ['๐Ÿคด', 'alice', 'reaction', 'message#alice'],
  1196. ['๐Ÿฅท', 'alice', 'reaction', 'message#alice'],
  1197. ['๐Ÿฆธโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1198. ['๐Ÿฆธ', 'alice', 'reaction', 'message#alice'],
  1199. ['๐Ÿฆธโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1200. ['๐Ÿฆนโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1201. ['๐Ÿฆน', 'alice', 'reaction', 'message#alice'],
  1202. ['๐Ÿฆนโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1203. ['๐Ÿคถ', 'alice', 'reaction', 'message#alice'],
  1204. ['๐Ÿง‘โ€๐ŸŽ„', 'alice', 'reaction', 'message#alice'],
  1205. ['๐ŸŽ…', 'alice', 'reaction', 'message#alice'],
  1206. ['๐Ÿง™โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1207. ['๐Ÿง™', 'alice', 'reaction', 'message#alice'],
  1208. ['๐Ÿง™โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1209. ['๐Ÿงโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1210. ['๐Ÿง', 'alice', 'reaction', 'message#alice'],
  1211. ['๐Ÿงโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1212. ['๐Ÿง›โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1213. ['๐Ÿง›', 'alice', 'reaction', 'message#alice'],
  1214. ['๐Ÿง›โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1215. ['๐ŸงŸโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1216. ['๐ŸงŸ', 'alice', 'reaction', 'message#alice'],
  1217. ['๐ŸงŸโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1218. ['๐Ÿงžโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1219. ['๐Ÿงž', 'alice', 'reaction', 'message#alice'],
  1220. ['๐Ÿงžโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1221. ['๐Ÿงœโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1222. ['๐Ÿงœ', 'alice', 'reaction', 'message#alice'],
  1223. ['๐Ÿงœโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1224. ['๐Ÿงšโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1225. ['๐Ÿงš', 'alice', 'reaction', 'message#alice'],
  1226. ['๐Ÿงšโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1227. ['๐ŸงŒ', 'alice', 'reaction', 'message#alice'],
  1228. ['๐Ÿ‘ผ', 'alice', 'reaction', 'message#alice'],
  1229. ['๐Ÿคฐ', 'alice', 'reaction', 'message#alice'],
  1230. ['๐Ÿซ„', 'alice', 'reaction', 'message#alice'],
  1231. ['๐Ÿซƒ', 'alice', 'reaction', 'message#alice'],
  1232. ['๐Ÿคฑ', 'alice', 'reaction', 'message#alice'],
  1233. ['๐Ÿ‘ฉโ€๐Ÿผ', 'alice', 'reaction', 'message#alice'],
  1234. ['๐Ÿง‘โ€๐Ÿผ', 'alice', 'reaction', 'message#alice'],
  1235. ['๐Ÿ‘จโ€๐Ÿผ', 'alice', 'reaction', 'message#alice'],
  1236. ['๐Ÿ™‡โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1237. ['๐Ÿ™‡', 'alice', 'reaction', 'message#alice'],
  1238. ['๐Ÿ™‡โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1239. ['๐Ÿ’โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1240. ['๐Ÿ’', 'alice', 'reaction', 'message#alice'],
  1241. ['๐Ÿ’โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1242. ['๐Ÿ™…โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1243. ['๐Ÿ™…', 'alice', 'reaction', 'message#alice'],
  1244. ['๐Ÿ™…โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1245. ['๐Ÿ™†โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1246. ['๐Ÿ™†', 'alice', 'reaction', 'message#alice'],
  1247. ['๐Ÿ™†โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1248. ['๐Ÿ™‹โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1249. ['๐Ÿ™‹', 'alice', 'reaction', 'message#alice'],
  1250. ['๐Ÿ™‹โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1251. ['๐Ÿงโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1252. ['๐Ÿง', 'alice', 'reaction', 'message#alice'],
  1253. ['๐Ÿงโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1254. ['๐Ÿคฆโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1255. ['๐Ÿคฆ', 'alice', 'reaction', 'message#alice'],
  1256. ['๐Ÿคฆโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1257. ['๐Ÿคทโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1258. ['๐Ÿคท', 'alice', 'reaction', 'message#alice'],
  1259. ['๐Ÿคทโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1260. ['๐Ÿ™Žโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1261. ['๐Ÿ™Ž', 'alice', 'reaction', 'message#alice'],
  1262. ['๐Ÿ™Žโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1263. ['๐Ÿ™โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1264. ['๐Ÿ™', 'alice', 'reaction', 'message#alice'],
  1265. ['๐Ÿ™โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1266. ['๐Ÿ’‡โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1267. ['๐Ÿ’‡', 'alice', 'reaction', 'message#alice'],
  1268. ['๐Ÿ’‡โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1269. ['๐Ÿ’†โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1270. ['๐Ÿ’†', 'alice', 'reaction', 'message#alice'],
  1271. ['๐Ÿ’†โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1272. ['๐Ÿง–โ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1273. ['๐Ÿง–', 'alice', 'reaction', 'message#alice'],
  1274. ['๐Ÿง–โ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1275. ['๐Ÿ’…', 'alice', 'reaction', 'message#alice'],
  1276. ['๐Ÿคณ', 'alice', 'reaction', 'message#alice'],
  1277. ['๐Ÿ’ƒ', 'alice', 'reaction', 'message#alice'],
  1278. ['๐Ÿ•บ', 'alice', 'reaction', 'message#alice'],
  1279. ['๐Ÿ‘ฏโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1280. ['๐Ÿ‘ฏ', 'alice', 'reaction', 'message#alice'],
  1281. ['๐Ÿ‘ฏโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1282. ['๐Ÿ•ด', 'alice', 'reaction', 'message#alice'],
  1283. ['๐Ÿ‘ฉโ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1284. ['๐Ÿง‘โ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1285. ['๐Ÿ‘จโ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1286. ['๐Ÿ‘ฉโ€๐Ÿฆผ', 'alice', 'reaction', 'message#alice'],
  1287. ['๐Ÿง‘โ€๐Ÿฆผ', 'alice', 'reaction', 'message#alice'],
  1288. ['๐Ÿ‘จโ€๐Ÿฆผ', 'alice', 'reaction', 'message#alice'],
  1289. ['๐Ÿšถโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1290. ['๐Ÿšถ', 'alice', 'reaction', 'message#alice'],
  1291. ['๐Ÿšถโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1292. ['๐Ÿ‘ฉโ€๐Ÿฆฏ', 'alice', 'reaction', 'message#alice'],
  1293. ['๐Ÿง‘โ€๐Ÿฆฏ', 'alice', 'reaction', 'message#alice'],
  1294. ['๐Ÿ‘จโ€๐Ÿฆฏ', 'alice', 'reaction', 'message#alice'],
  1295. ['๐ŸงŽโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1296. ['๐ŸงŽ', 'alice', 'reaction', 'message#alice'],
  1297. ['๐ŸงŽโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1298. ['๐Ÿƒโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1299. ['๐Ÿƒ', 'alice', 'reaction', 'message#alice'],
  1300. ['๐Ÿƒโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1301. ['๐Ÿงโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1302. ['๐Ÿง', 'alice', 'reaction', 'message#alice'],
  1303. ['๐Ÿงโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1304. ['๐Ÿ‘ญ', 'alice', 'reaction', 'message#alice'],
  1305. ['๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘', 'alice', 'reaction', 'message#alice'],
  1306. ['๐Ÿ‘ฌ', 'alice', 'reaction', 'message#alice'],
  1307. ['๐Ÿ‘ซ', 'alice', 'reaction', 'message#alice'],
  1308. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘ฉ', 'alice', 'reaction', 'message#alice'],
  1309. ['๐Ÿ’‘', 'alice', 'reaction', 'message#alice'],
  1310. ['๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ', 'alice', 'reaction', 'message#alice'],
  1311. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘จ', 'alice', 'reaction', 'message#alice'],
  1312. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘ฉ', 'alice', 'reaction', 'message#alice'],
  1313. ['๐Ÿ’', 'alice', 'reaction', 'message#alice'],
  1314. ['๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ', 'alice', 'reaction', 'message#alice'],
  1315. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ', 'alice', 'reaction', 'message#alice'],
  1316. ['๐Ÿ‘ช', 'alice', 'reaction', 'message#alice'],
  1317. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1318. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1319. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1320. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1321. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1322. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1323. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1324. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1325. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1326. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1327. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1328. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1329. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1330. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1331. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1332. ['๐Ÿ‘จโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1333. ['๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1334. ['๐Ÿ‘จโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1335. ['๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1336. ['๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1337. ['๐Ÿ‘ฉโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1338. ['๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1339. ['๐Ÿ‘ฉโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1340. ['๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice', 'reaction', 'message#alice'],
  1341. ['๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice', 'reaction', 'message#alice'],
  1342. ['๐Ÿ—ฃ', 'alice', 'reaction', 'message#alice'],
  1343. ['๐Ÿ‘ค', 'alice', 'reaction', 'message#alice'],
  1344. ['๐Ÿ‘ฅ', 'alice', 'reaction', 'message#alice'],
  1345. ['๐Ÿซ‚', 'alice', 'reaction', 'message#alice'],
  1346. ['๐Ÿ‘‹๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1347. ['๐Ÿคš๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1348. ['๐Ÿ–๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1349. ['โœ‹๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1350. ['๐Ÿ––๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1351. ['๐Ÿ‘Œ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1352. ['๐ŸคŒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1353. ['๐Ÿค๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1354. ['โœŒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1355. ['๐Ÿคž๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1356. ['๐Ÿซฐ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1357. ['๐ŸคŸ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1358. ['๐Ÿค˜๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1359. ['๐Ÿค™๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1360. ['๐Ÿซต๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1361. ['๐Ÿซฑ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1362. ['๐Ÿซฒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1363. ['๐Ÿซณ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1364. ['๐Ÿซด๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1365. ['๐Ÿ‘ˆ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1366. ['๐Ÿ‘‰๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1367. ['๐Ÿ‘†๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1368. ['๐Ÿ–•๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1369. ['๐Ÿ‘‡๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1370. ['โ˜๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1371. ['๐Ÿ‘๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1372. ['๐Ÿ‘Ž๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1373. ['โœŠ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1374. ['๐Ÿ‘Š๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1375. ['๐Ÿค›๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1376. ['๐Ÿคœ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1377. ['๐Ÿ‘๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1378. ['๐Ÿซถ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1379. ['๐Ÿ™Œ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1380. ['๐Ÿ‘๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1381. ['๐Ÿคฒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1382. ['๐Ÿ™๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1383. ['โœ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1384. ['๐Ÿ’…๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1385. ['๐Ÿคณ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1386. ['๐Ÿ’ช๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1387. ['๐Ÿฆต๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1388. ['๐Ÿฆถ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1389. ['๐Ÿ‘‚๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1390. ['๐Ÿฆป๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1391. ['๐Ÿ‘ƒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1392. ['๐Ÿ‘ถ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1393. ['๐Ÿ‘ง๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1394. ['๐Ÿง’๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1395. ['๐Ÿ‘ฆ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1396. ['๐Ÿ‘ฉ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1397. ['๐Ÿง‘๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1398. ['๐Ÿ‘จ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1399. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฑ', 'alice', 'reaction', 'message#alice'],
  1400. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฑ', 'alice', 'reaction', 'message#alice'],
  1401. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆฑ', 'alice', 'reaction', 'message#alice'],
  1402. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฐ', 'alice', 'reaction', 'message#alice'],
  1403. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฐ', 'alice', 'reaction', 'message#alice'],
  1404. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆฐ', 'alice', 'reaction', 'message#alice'],
  1405. ['๐Ÿ‘ฑ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1406. ['๐Ÿ‘ฑ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1407. ['๐Ÿ‘ฑ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1408. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆณ', 'alice', 'reaction', 'message#alice'],
  1409. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆณ', 'alice', 'reaction', 'message#alice'],
  1410. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆณ', 'alice', 'reaction', 'message#alice'],
  1411. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฒ', 'alice', 'reaction', 'message#alice'],
  1412. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฒ', 'alice', 'reaction', 'message#alice'],
  1413. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆฒ', 'alice', 'reaction', 'message#alice'],
  1414. ['๐Ÿง”๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1415. ['๐Ÿง”๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1416. ['๐Ÿง”๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1417. ['๐Ÿ‘ต๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1418. ['๐Ÿง“๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1419. ['๐Ÿ‘ด๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1420. ['๐Ÿ‘ฒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1421. ['๐Ÿ‘ณ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1422. ['๐Ÿ‘ณ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1423. ['๐Ÿ‘ณ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1424. ['๐Ÿง•๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1425. ['๐Ÿ‘ฎ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1426. ['๐Ÿ‘ฎ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1427. ['๐Ÿ‘ฎ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1428. ['๐Ÿ‘ท๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1429. ['๐Ÿ‘ท๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1430. ['๐Ÿ‘ท๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1431. ['๐Ÿ’‚๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1432. ['๐Ÿ’‚๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1433. ['๐Ÿ’‚๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1434. ['๐Ÿ•ต๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1435. ['๐Ÿ•ต๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1436. ['๐Ÿ•ต๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1437. ['๐Ÿ‘ฉ๐Ÿฝโ€โš•๏ธ', 'alice', 'reaction', 'message#alice'],
  1438. ['๐Ÿง‘๐Ÿฝโ€โš•๏ธ', 'alice', 'reaction', 'message#alice'],
  1439. ['๐Ÿ‘จ๐Ÿฝโ€โš•๏ธ', 'alice', 'reaction', 'message#alice'],
  1440. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŒพ', 'alice', 'reaction', 'message#alice'],
  1441. ['๐Ÿง‘๐Ÿฝโ€๐ŸŒพ', 'alice', 'reaction', 'message#alice'],
  1442. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŒพ', 'alice', 'reaction', 'message#alice'],
  1443. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿณ', 'alice', 'reaction', 'message#alice'],
  1444. ['๐Ÿง‘๐Ÿฝโ€๐Ÿณ', 'alice', 'reaction', 'message#alice'],
  1445. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿณ', 'alice', 'reaction', 'message#alice'],
  1446. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŽ“', 'alice', 'reaction', 'message#alice'],
  1447. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽ“', 'alice', 'reaction', 'message#alice'],
  1448. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŽ“', 'alice', 'reaction', 'message#alice'],
  1449. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŽค', 'alice', 'reaction', 'message#alice'],
  1450. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽค', 'alice', 'reaction', 'message#alice'],
  1451. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŽค', 'alice', 'reaction', 'message#alice'],
  1452. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿซ', 'alice', 'reaction', 'message#alice'],
  1453. ['๐Ÿง‘๐Ÿฝโ€๐Ÿซ', 'alice', 'reaction', 'message#alice'],
  1454. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿซ', 'alice', 'reaction', 'message#alice'],
  1455. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿญ', 'alice', 'reaction', 'message#alice'],
  1456. ['๐Ÿง‘๐Ÿฝโ€๐Ÿญ', 'alice', 'reaction', 'message#alice'],
  1457. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿญ', 'alice', 'reaction', 'message#alice'],
  1458. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ป', 'alice', 'reaction', 'message#alice'],
  1459. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป', 'alice', 'reaction', 'message#alice'],
  1460. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป', 'alice', 'reaction', 'message#alice'],
  1461. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ผ', 'alice', 'reaction', 'message#alice'],
  1462. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ’ผ', 'alice', 'reaction', 'message#alice'],
  1463. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ผ', 'alice', 'reaction', 'message#alice'],
  1464. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ”ง', 'alice', 'reaction', 'message#alice'],
  1465. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ”ง', 'alice', 'reaction', 'message#alice'],
  1466. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ”ง', 'alice', 'reaction', 'message#alice'],
  1467. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ”ฌ', 'alice', 'reaction', 'message#alice'],
  1468. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ”ฌ', 'alice', 'reaction', 'message#alice'],
  1469. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ”ฌ', 'alice', 'reaction', 'message#alice'],
  1470. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŽจ', 'alice', 'reaction', 'message#alice'],
  1471. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽจ', 'alice', 'reaction', 'message#alice'],
  1472. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŽจ', 'alice', 'reaction', 'message#alice'],
  1473. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿš’', 'alice', 'reaction', 'message#alice'],
  1474. ['๐Ÿง‘๐Ÿฝโ€๐Ÿš’', 'alice', 'reaction', 'message#alice'],
  1475. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿš’', 'alice', 'reaction', 'message#alice'],
  1476. ['๐Ÿ‘ฉ๐Ÿฝโ€โœˆ๏ธ', 'alice', 'reaction', 'message#alice'],
  1477. ['๐Ÿง‘๐Ÿฝโ€โœˆ๏ธ', 'alice', 'reaction', 'message#alice'],
  1478. ['๐Ÿ‘จ๐Ÿฝโ€โœˆ๏ธ', 'alice', 'reaction', 'message#alice'],
  1479. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿš€', 'alice', 'reaction', 'message#alice'],
  1480. ['๐Ÿง‘๐Ÿฝโ€๐Ÿš€', 'alice', 'reaction', 'message#alice'],
  1481. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿš€', 'alice', 'reaction', 'message#alice'],
  1482. ['๐Ÿ‘ฉ๐Ÿฝโ€โš–๏ธ', 'alice', 'reaction', 'message#alice'],
  1483. ['๐Ÿง‘๐Ÿฝโ€โš–๏ธ', 'alice', 'reaction', 'message#alice'],
  1484. ['๐Ÿ‘จ๐Ÿฝโ€โš–๏ธ', 'alice', 'reaction', 'message#alice'],
  1485. ['๐Ÿ‘ฐ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1486. ['๐Ÿ‘ฐ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1487. ['๐Ÿ‘ฐ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1488. ['๐Ÿคต๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1489. ['๐Ÿคต๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1490. ['๐Ÿคต๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1491. ['๐Ÿ‘ธ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1492. ['๐Ÿซ…๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1493. ['๐Ÿคด๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1494. ['๐Ÿฅท๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1495. ['๐Ÿฆธ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1496. ['๐Ÿฆธ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1497. ['๐Ÿฆธ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1498. ['๐Ÿฆน๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1499. ['๐Ÿฆน๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1500. ['๐Ÿฆน๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1501. ['๐Ÿคถ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1502. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽ„', 'alice', 'reaction', 'message#alice'],
  1503. ['๐ŸŽ…๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1504. ['๐Ÿง™๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1505. ['๐Ÿง™๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1506. ['๐Ÿง™๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1507. ['๐Ÿง๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1508. ['๐Ÿง๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1509. ['๐Ÿง๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1510. ['๐Ÿง›๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1511. ['๐Ÿง›๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1512. ['๐Ÿง›๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1513. ['๐Ÿงœ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1514. ['๐Ÿงœ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1515. ['๐Ÿงœ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1516. ['๐Ÿงš๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1517. ['๐Ÿงš๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1518. ['๐Ÿงš๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1519. ['๐Ÿ‘ผ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1520. ['๐Ÿคฐ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1521. ['๐Ÿซ„๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1522. ['๐Ÿซƒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1523. ['๐Ÿคฑ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1524. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿผ', 'alice', 'reaction', 'message#alice'],
  1525. ['๐Ÿง‘๐Ÿฝโ€๐Ÿผ', 'alice', 'reaction', 'message#alice'],
  1526. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿผ', 'alice', 'reaction', 'message#alice'],
  1527. ['๐Ÿ™‡๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1528. ['๐Ÿ™‡๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1529. ['๐Ÿ™‡๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1530. ['๐Ÿ’๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1531. ['๐Ÿ’๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1532. ['๐Ÿ’๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1533. ['๐Ÿ™…๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1534. ['๐Ÿ™…๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1535. ['๐Ÿ™…๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1536. ['๐Ÿ™†๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1537. ['๐Ÿ™†๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1538. ['๐Ÿ™†๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1539. ['๐Ÿ™‹๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1540. ['๐Ÿ™‹๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1541. ['๐Ÿ™‹๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1542. ['๐Ÿง๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1543. ['๐Ÿง๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1544. ['๐Ÿง๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1545. ['๐Ÿคฆ๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1546. ['๐Ÿคฆ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1547. ['๐Ÿคฆ๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1548. ['๐Ÿคท๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1549. ['๐Ÿคท๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1550. ['๐Ÿคท๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1551. ['๐Ÿ™Ž๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1552. ['๐Ÿ™Ž๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1553. ['๐Ÿ™Ž๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1554. ['๐Ÿ™๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1555. ['๐Ÿ™๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1556. ['๐Ÿ™๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1557. ['๐Ÿ’‡๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1558. ['๐Ÿ’‡๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1559. ['๐Ÿ’‡๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1560. ['๐Ÿ’†๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1561. ['๐Ÿ’†๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1562. ['๐Ÿ’†๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1563. ['๐Ÿง–๐Ÿฝโ€โ™€๏ธ', 'alice', 'reaction', 'message#alice'],
  1564. ['๐Ÿง–๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1565. ['๐Ÿง–๐Ÿฝโ€โ™‚๏ธ', 'alice', 'reaction', 'message#alice'],
  1566. ['๐Ÿ’ƒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1567. ['๐Ÿ•บ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1568. ['๐Ÿ•ด๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1569. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1570. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1571. ],
  1572. [
  1573. ['๐Ÿ˜€', 'alice'],
  1574. ['๐Ÿ˜ƒ', 'alice'],
  1575. ['๐Ÿ˜„', 'alice'],
  1576. ['๐Ÿ˜', 'alice'],
  1577. ['๐Ÿ˜†', 'alice'],
  1578. ['๐Ÿ˜…', 'alice'],
  1579. ['๐Ÿ˜‚', 'alice'],
  1580. ['๐Ÿคฃ', 'alice'],
  1581. ['๐Ÿฅฒ', 'alice'],
  1582. ['๐Ÿฅน', 'alice'],
  1583. ['โ˜บ๏ธ', 'alice'],
  1584. ['๐Ÿ˜Š', 'alice'],
  1585. ['๐Ÿ˜‡', 'alice'],
  1586. ['๐Ÿ™‚', 'alice'],
  1587. ['๐Ÿ™ƒ', 'alice'],
  1588. ['๐Ÿ˜‰', 'alice'],
  1589. ['๐Ÿ˜Œ', 'alice'],
  1590. ['๐Ÿ˜', 'alice'],
  1591. ['๐Ÿฅฐ', 'alice'],
  1592. ['๐Ÿ˜˜', 'alice'],
  1593. ['๐Ÿ˜—', 'alice'],
  1594. ['๐Ÿ˜™', 'alice'],
  1595. ['๐Ÿ˜š', 'alice'],
  1596. ['๐Ÿ˜‹', 'alice'],
  1597. ['๐Ÿ˜›', 'alice'],
  1598. ['๐Ÿ˜', 'alice'],
  1599. ['๐Ÿ˜œ', 'alice'],
  1600. ['๐Ÿคช', 'alice'],
  1601. ['๐Ÿคจ', 'alice'],
  1602. ['๐Ÿง', 'alice'],
  1603. ['๐Ÿค“', 'alice'],
  1604. ['๐Ÿ˜Ž', 'alice'],
  1605. ['๐Ÿฅธ', 'alice'],
  1606. ['๐Ÿคฉ', 'alice'],
  1607. ['๐Ÿฅณ', 'alice'],
  1608. ['๐Ÿ˜', 'alice'],
  1609. ['๐Ÿ˜’', 'alice'],
  1610. ['๐Ÿ˜ž', 'alice'],
  1611. ['๐Ÿ˜”', 'alice'],
  1612. ['๐Ÿ˜Ÿ', 'alice'],
  1613. ['๐Ÿ˜•', 'alice'],
  1614. ['๐Ÿ™', 'alice'],
  1615. ['โ˜น๏ธ', 'alice'],
  1616. ['๐Ÿ˜ฃ', 'alice'],
  1617. ['๐Ÿ˜–', 'alice'],
  1618. ['๐Ÿ˜ซ', 'alice'],
  1619. ['๐Ÿ˜ฉ', 'alice'],
  1620. ['๐Ÿฅบ', 'alice'],
  1621. ['๐Ÿ˜ข', 'alice'],
  1622. ['๐Ÿ˜ญ', 'alice'],
  1623. ['๐Ÿ˜ฎโ€๐Ÿ’จ', 'alice'],
  1624. ['๐Ÿ˜ค', 'alice'],
  1625. ['๐Ÿ˜ ', 'alice'],
  1626. ['๐Ÿ˜ก', 'alice'],
  1627. ['๐Ÿคฌ', 'alice'],
  1628. ['๐Ÿคฏ', 'alice'],
  1629. ['๐Ÿ˜ณ', 'alice'],
  1630. ['๐Ÿฅต', 'alice'],
  1631. ['๐Ÿฅถ', 'alice'],
  1632. ['๐Ÿ˜ฑ', 'alice'],
  1633. ['๐Ÿ˜จ', 'alice'],
  1634. ['๐Ÿ˜ฐ', 'alice'],
  1635. ['๐Ÿ˜ฅ', 'alice'],
  1636. ['๐Ÿ˜“', 'alice'],
  1637. ['๐Ÿซฃ', 'alice'],
  1638. ['๐Ÿค—', 'alice'],
  1639. ['๐Ÿซก', 'alice'],
  1640. ['๐Ÿค”', 'alice'],
  1641. ['๐Ÿซข', 'alice'],
  1642. ['๐Ÿคญ', 'alice'],
  1643. ['๐Ÿคซ', 'alice'],
  1644. ['๐Ÿคฅ', 'alice'],
  1645. ['๐Ÿ˜ถ', 'alice'],
  1646. ['๐Ÿ˜ถโ€๐ŸŒซ๏ธ', 'alice'],
  1647. ['๐Ÿ˜', 'alice'],
  1648. ['๐Ÿ˜‘', 'alice'],
  1649. ['๐Ÿ˜ฌ', 'alice'],
  1650. ['๐Ÿซ ', 'alice'],
  1651. ['๐Ÿ™„', 'alice'],
  1652. ['๐Ÿ˜ฏ', 'alice'],
  1653. ['๐Ÿ˜ฆ', 'alice'],
  1654. ['๐Ÿ˜ง', 'alice'],
  1655. ['๐Ÿ˜ฎ', 'alice'],
  1656. ['๐Ÿ˜ฒ', 'alice'],
  1657. ['๐Ÿฅฑ', 'alice'],
  1658. ['๐Ÿ˜ด', 'alice'],
  1659. ['๐Ÿคค', 'alice'],
  1660. ['๐Ÿ˜ช', 'alice'],
  1661. ['๐Ÿ˜ต', 'alice'],
  1662. ['๐Ÿ˜ตโ€๐Ÿ’ซ', 'alice'],
  1663. ['๐Ÿซฅ', 'alice'],
  1664. ['๐Ÿค', 'alice'],
  1665. ['๐Ÿฅด', 'alice'],
  1666. ['๐Ÿคข', 'alice'],
  1667. ['๐Ÿคฎ', 'alice'],
  1668. ['๐Ÿคง', 'alice'],
  1669. ['๐Ÿ˜ท', 'alice'],
  1670. ['๐Ÿค’', 'alice'],
  1671. ['๐Ÿค•', 'alice'],
  1672. ['๐Ÿค‘', 'alice'],
  1673. ['๐Ÿค ', 'alice'],
  1674. ['๐Ÿ˜ˆ', 'alice'],
  1675. ['๐Ÿ‘ฟ', 'alice'],
  1676. ['๐Ÿ‘น', 'alice'],
  1677. ['๐Ÿ‘บ', 'alice'],
  1678. ['๐Ÿคก', 'alice'],
  1679. ['๐Ÿ’ฉ', 'alice'],
  1680. ['๐Ÿ‘ป', 'alice'],
  1681. ['๐Ÿ’€', 'alice'],
  1682. ['โ˜ ๏ธ', 'alice'],
  1683. ['๐Ÿ‘ฝ', 'alice'],
  1684. ['๐Ÿ‘พ', 'alice'],
  1685. ['๐Ÿค–', 'alice'],
  1686. ['๐ŸŽƒ', 'alice'],
  1687. ['๐Ÿ˜บ', 'alice'],
  1688. ['๐Ÿ˜ธ', 'alice'],
  1689. ['๐Ÿ˜น', 'alice'],
  1690. ['๐Ÿ˜ป', 'alice'],
  1691. ['๐Ÿ˜ผ', 'alice'],
  1692. ['๐Ÿ˜ฝ', 'alice'],
  1693. ['๐Ÿ™€', 'alice'],
  1694. ['๐Ÿ˜ฟ', 'alice'],
  1695. ['๐Ÿ˜พ', 'alice'],
  1696. ['๐Ÿ‘ถ', 'alice'],
  1697. ['๐Ÿ‘ง', 'alice'],
  1698. ['๐Ÿง’', 'alice'],
  1699. ['๐Ÿ‘ฆ', 'alice'],
  1700. ['๐Ÿ‘ฉ', 'alice'],
  1701. ['๐Ÿง‘', 'alice'],
  1702. ['๐Ÿ‘จ', 'alice'],
  1703. ['๐Ÿ‘ฉโ€๐Ÿฆฑ', 'alice'],
  1704. ['๐Ÿง‘โ€๐Ÿฆฑ', 'alice'],
  1705. ['๐Ÿ‘จโ€๐Ÿฆฑ', 'alice'],
  1706. ['๐Ÿ‘ฉโ€๐Ÿฆฐ', 'alice'],
  1707. ['๐Ÿง‘โ€๐Ÿฆฐ', 'alice'],
  1708. ['๐Ÿ‘จโ€๐Ÿฆฐ', 'alice'],
  1709. ['๐Ÿ‘ฑโ€โ™€๏ธ', 'alice'],
  1710. ['๐Ÿ‘ฑ', 'alice'],
  1711. ['๐Ÿ‘ฑโ€โ™‚๏ธ', 'alice'],
  1712. ['๐Ÿ‘ฉโ€๐Ÿฆณ', 'alice'],
  1713. ['๐Ÿง‘โ€๐Ÿฆณ', 'alice'],
  1714. ['๐Ÿ‘จโ€๐Ÿฆณ', 'alice'],
  1715. ['๐Ÿ‘ฉโ€๐Ÿฆฒ', 'alice'],
  1716. ['๐Ÿง‘โ€๐Ÿฆฒ', 'alice'],
  1717. ['๐Ÿ‘จโ€๐Ÿฆฒ', 'alice'],
  1718. ['๐Ÿง”โ€โ™€๏ธ', 'alice'],
  1719. ['๐Ÿง”', 'alice'],
  1720. ['๐Ÿง”โ€โ™‚๏ธ', 'alice'],
  1721. ['๐Ÿ‘ต', 'alice'],
  1722. ['๐Ÿง“', 'alice'],
  1723. ['๐Ÿ‘ด', 'alice'],
  1724. ['๐Ÿ‘ฒ', 'alice'],
  1725. ['๐Ÿ‘ณโ€โ™€๏ธ', 'alice'],
  1726. ['๐Ÿ‘ณ', 'alice'],
  1727. ['๐Ÿ‘ณโ€โ™‚๏ธ', 'alice'],
  1728. ['๐Ÿง•', 'alice'],
  1729. ['๐Ÿ‘ฎโ€โ™€๏ธ', 'alice'],
  1730. ['๐Ÿ‘ฎ', 'alice'],
  1731. ['๐Ÿ‘ฎโ€โ™‚๏ธ', 'alice'],
  1732. ['๐Ÿ‘ทโ€โ™€๏ธ', 'alice'],
  1733. ['๐Ÿ‘ท', 'alice'],
  1734. ['๐Ÿ‘ทโ€โ™‚๏ธ', 'alice'],
  1735. ['๐Ÿ’‚โ€โ™€๏ธ', 'alice'],
  1736. ['๐Ÿ’‚', 'alice'],
  1737. ['๐Ÿ’‚โ€โ™‚๏ธ', 'alice'],
  1738. ['๐Ÿ•ต๏ธโ€โ™€๏ธ', 'alice'],
  1739. ['๐Ÿ•ต๏ธ', 'alice'],
  1740. ['๐Ÿ•ต๏ธโ€โ™‚๏ธ', 'alice'],
  1741. ['๐Ÿ‘ฉโ€โš•๏ธ', 'alice'],
  1742. ['๐Ÿง‘โ€โš•๏ธ', 'alice'],
  1743. ['๐Ÿ‘จโ€โš•๏ธ', 'alice'],
  1744. ['๐Ÿ‘ฉโ€๐ŸŒพ', 'alice'],
  1745. ['๐Ÿง‘โ€๐ŸŒพ', 'alice'],
  1746. ['๐Ÿ‘จโ€๐ŸŒพ', 'alice'],
  1747. ['๐Ÿ‘ฉโ€๐Ÿณ', 'alice'],
  1748. ['๐Ÿง‘โ€๐Ÿณ', 'alice'],
  1749. ['๐Ÿ‘จโ€๐Ÿณ', 'alice'],
  1750. ['๐Ÿ‘ฉโ€๐ŸŽ“', 'alice'],
  1751. ['๐Ÿง‘โ€๐ŸŽ“', 'alice'],
  1752. ['๐Ÿ‘จโ€๐ŸŽ“', 'alice'],
  1753. ['๐Ÿ‘ฉโ€๐ŸŽค', 'alice'],
  1754. ['๐Ÿง‘โ€๐ŸŽค', 'alice'],
  1755. ['๐Ÿ‘จโ€๐ŸŽค', 'alice'],
  1756. ['๐Ÿ‘ฉโ€๐Ÿซ', 'alice'],
  1757. ['๐Ÿง‘โ€๐Ÿซ', 'alice'],
  1758. ['๐Ÿ‘จโ€๐Ÿซ', 'alice'],
  1759. ['๐Ÿ‘ฉโ€๐Ÿญ', 'alice'],
  1760. ['๐Ÿง‘โ€๐Ÿญ', 'alice'],
  1761. ['๐Ÿ‘จโ€๐Ÿญ', 'alice'],
  1762. ['๐Ÿ‘ฉโ€๐Ÿ’ป', 'alice'],
  1763. ['๐Ÿง‘โ€๐Ÿ’ป', 'alice'],
  1764. ['๐Ÿ‘จโ€๐Ÿ’ป', 'alice'],
  1765. ['๐Ÿ‘ฉโ€๐Ÿ’ผ', 'alice'],
  1766. ['๐Ÿง‘โ€๐Ÿ’ผ', 'alice'],
  1767. ['๐Ÿ‘จโ€๐Ÿ’ผ', 'alice'],
  1768. ['๐Ÿ‘ฉโ€๐Ÿ”ง', 'alice'],
  1769. ['๐Ÿง‘โ€๐Ÿ”ง', 'alice'],
  1770. ['๐Ÿ‘จโ€๐Ÿ”ง', 'alice'],
  1771. ['๐Ÿ‘ฉโ€๐Ÿ”ฌ', 'alice'],
  1772. ['๐Ÿง‘โ€๐Ÿ”ฌ', 'alice'],
  1773. ['๐Ÿ‘จโ€๐Ÿ”ฌ', 'alice'],
  1774. ['๐Ÿ‘ฉโ€๐ŸŽจ', 'alice'],
  1775. ['๐Ÿง‘โ€๐ŸŽจ', 'alice'],
  1776. ['๐Ÿ‘จโ€๐ŸŽจ', 'alice'],
  1777. ['๐Ÿ‘ฉโ€๐Ÿš’', 'alice'],
  1778. ['๐Ÿง‘โ€๐Ÿš’', 'alice'],
  1779. ['๐Ÿ‘จโ€๐Ÿš’', 'alice'],
  1780. ['๐Ÿ‘ฉโ€โœˆ๏ธ', 'alice'],
  1781. ['๐Ÿง‘โ€โœˆ๏ธ', 'alice'],
  1782. ['๐Ÿ‘จโ€โœˆ๏ธ', 'alice'],
  1783. ['๐Ÿ‘ฉโ€๐Ÿš€', 'alice'],
  1784. ['๐Ÿง‘โ€๐Ÿš€', 'alice'],
  1785. ['๐Ÿ‘จโ€๐Ÿš€', 'alice'],
  1786. ['๐Ÿ‘ฉโ€โš–๏ธ', 'alice'],
  1787. ['๐Ÿง‘โ€โš–๏ธ', 'alice'],
  1788. ['๐Ÿ‘จโ€โš–๏ธ', 'alice'],
  1789. ['๐Ÿ‘ฐโ€โ™€๏ธ', 'alice'],
  1790. ['๐Ÿ‘ฐ', 'alice'],
  1791. ['๐Ÿ‘ฐโ€โ™‚๏ธ', 'alice'],
  1792. ['๐Ÿคตโ€โ™€๏ธ', 'alice'],
  1793. ['๐Ÿคต', 'alice'],
  1794. ['๐Ÿคตโ€โ™‚๏ธ', 'alice'],
  1795. ['๐Ÿ‘ธ', 'alice'],
  1796. ['๐Ÿซ…', 'alice'],
  1797. ['๐Ÿคด', 'alice'],
  1798. ['๐Ÿฅท', 'alice'],
  1799. ['๐Ÿฆธโ€โ™€๏ธ', 'alice'],
  1800. ['๐Ÿฆธ', 'alice'],
  1801. ['๐Ÿฆธโ€โ™‚๏ธ', 'alice'],
  1802. ['๐Ÿฆนโ€โ™€๏ธ', 'alice'],
  1803. ['๐Ÿฆน', 'alice'],
  1804. ['๐Ÿฆนโ€โ™‚๏ธ', 'alice'],
  1805. ['๐Ÿคถ', 'alice'],
  1806. ['๐Ÿง‘โ€๐ŸŽ„', 'alice'],
  1807. ['๐ŸŽ…', 'alice'],
  1808. ['๐Ÿง™โ€โ™€๏ธ', 'alice'],
  1809. ['๐Ÿง™', 'alice'],
  1810. ['๐Ÿง™โ€โ™‚๏ธ', 'alice'],
  1811. ['๐Ÿงโ€โ™€๏ธ', 'alice'],
  1812. ['๐Ÿง', 'alice'],
  1813. ['๐Ÿงโ€โ™‚๏ธ', 'alice'],
  1814. ['๐Ÿง›โ€โ™€๏ธ', 'alice'],
  1815. ['๐Ÿง›', 'alice'],
  1816. ['๐Ÿง›โ€โ™‚๏ธ', 'alice'],
  1817. ['๐ŸงŸโ€โ™€๏ธ', 'alice'],
  1818. ['๐ŸงŸ', 'alice'],
  1819. ['๐ŸงŸโ€โ™‚๏ธ', 'alice'],
  1820. ['๐Ÿงžโ€โ™€๏ธ', 'alice'],
  1821. ['๐Ÿงž', 'alice'],
  1822. ['๐Ÿงžโ€โ™‚๏ธ', 'alice'],
  1823. ['๐Ÿงœโ€โ™€๏ธ', 'alice'],
  1824. ['๐Ÿงœ', 'alice'],
  1825. ['๐Ÿงœโ€โ™‚๏ธ', 'alice'],
  1826. ['๐Ÿงšโ€โ™€๏ธ', 'alice'],
  1827. ['๐Ÿงš', 'alice'],
  1828. ['๐Ÿงšโ€โ™‚๏ธ', 'alice'],
  1829. ['๐ŸงŒ', 'alice'],
  1830. ['๐Ÿ‘ผ', 'alice'],
  1831. ['๐Ÿคฐ', 'alice'],
  1832. ['๐Ÿซ„', 'alice'],
  1833. ['๐Ÿซƒ', 'alice'],
  1834. ['๐Ÿคฑ', 'alice'],
  1835. ['๐Ÿ‘ฉโ€๐Ÿผ', 'alice'],
  1836. ['๐Ÿง‘โ€๐Ÿผ', 'alice'],
  1837. ['๐Ÿ‘จโ€๐Ÿผ', 'alice'],
  1838. ['๐Ÿ™‡โ€โ™€๏ธ', 'alice'],
  1839. ['๐Ÿ™‡', 'alice'],
  1840. ['๐Ÿ™‡โ€โ™‚๏ธ', 'alice'],
  1841. ['๐Ÿ’โ€โ™€๏ธ', 'alice'],
  1842. ['๐Ÿ’', 'alice'],
  1843. ['๐Ÿ’โ€โ™‚๏ธ', 'alice'],
  1844. ['๐Ÿ™…โ€โ™€๏ธ', 'alice'],
  1845. ['๐Ÿ™…', 'alice'],
  1846. ['๐Ÿ™…โ€โ™‚๏ธ', 'alice'],
  1847. ['๐Ÿ™†โ€โ™€๏ธ', 'alice'],
  1848. ['๐Ÿ™†', 'alice'],
  1849. ['๐Ÿ™†โ€โ™‚๏ธ', 'alice'],
  1850. ['๐Ÿ™‹โ€โ™€๏ธ', 'alice'],
  1851. ['๐Ÿ™‹', 'alice'],
  1852. ['๐Ÿ™‹โ€โ™‚๏ธ', 'alice'],
  1853. ['๐Ÿงโ€โ™€๏ธ', 'alice'],
  1854. ['๐Ÿง', 'alice'],
  1855. ['๐Ÿงโ€โ™‚๏ธ', 'alice'],
  1856. ['๐Ÿคฆโ€โ™€๏ธ', 'alice'],
  1857. ['๐Ÿคฆ', 'alice'],
  1858. ['๐Ÿคฆโ€โ™‚๏ธ', 'alice'],
  1859. ['๐Ÿคทโ€โ™€๏ธ', 'alice'],
  1860. ['๐Ÿคท', 'alice'],
  1861. ['๐Ÿคทโ€โ™‚๏ธ', 'alice'],
  1862. ['๐Ÿ™Žโ€โ™€๏ธ', 'alice'],
  1863. ['๐Ÿ™Ž', 'alice'],
  1864. ['๐Ÿ™Žโ€โ™‚๏ธ', 'alice'],
  1865. ['๐Ÿ™โ€โ™€๏ธ', 'alice'],
  1866. ['๐Ÿ™', 'alice'],
  1867. ['๐Ÿ™โ€โ™‚๏ธ', 'alice'],
  1868. ['๐Ÿ’‡โ€โ™€๏ธ', 'alice'],
  1869. ['๐Ÿ’‡', 'alice'],
  1870. ['๐Ÿ’‡โ€โ™‚๏ธ', 'alice'],
  1871. ['๐Ÿ’†โ€โ™€๏ธ', 'alice'],
  1872. ['๐Ÿ’†', 'alice'],
  1873. ['๐Ÿ’†โ€โ™‚๏ธ', 'alice'],
  1874. ['๐Ÿง–โ€โ™€๏ธ', 'alice'],
  1875. ['๐Ÿง–', 'alice'],
  1876. ['๐Ÿง–โ€โ™‚๏ธ', 'alice'],
  1877. ['๐Ÿ’…', 'alice'],
  1878. ['๐Ÿคณ', 'alice'],
  1879. ['๐Ÿ’ƒ', 'alice'],
  1880. ['๐Ÿ•บ', 'alice'],
  1881. ['๐Ÿ‘ฏโ€โ™€๏ธ', 'alice'],
  1882. ['๐Ÿ‘ฏ', 'alice'],
  1883. ['๐Ÿ‘ฏโ€โ™‚๏ธ', 'alice'],
  1884. ['๐Ÿ•ด', 'alice'],
  1885. ['๐Ÿ‘ฉโ€๐Ÿฆฝ', 'alice'],
  1886. ['๐Ÿง‘โ€๐Ÿฆฝ', 'alice'],
  1887. ['๐Ÿ‘จโ€๐Ÿฆฝ', 'alice'],
  1888. ['๐Ÿ‘ฉโ€๐Ÿฆผ', 'alice'],
  1889. ['๐Ÿง‘โ€๐Ÿฆผ', 'alice'],
  1890. ['๐Ÿ‘จโ€๐Ÿฆผ', 'alice'],
  1891. ['๐Ÿšถโ€โ™€๏ธ', 'alice'],
  1892. ['๐Ÿšถ', 'alice'],
  1893. ['๐Ÿšถโ€โ™‚๏ธ', 'alice'],
  1894. ['๐Ÿ‘ฉโ€๐Ÿฆฏ', 'alice'],
  1895. ['๐Ÿง‘โ€๐Ÿฆฏ', 'alice'],
  1896. ['๐Ÿ‘จโ€๐Ÿฆฏ', 'alice'],
  1897. ['๐ŸงŽโ€โ™€๏ธ', 'alice'],
  1898. ['๐ŸงŽ', 'alice'],
  1899. ['๐ŸงŽโ€โ™‚๏ธ', 'alice'],
  1900. ['๐Ÿƒโ€โ™€๏ธ', 'alice'],
  1901. ['๐Ÿƒ', 'alice'],
  1902. ['๐Ÿƒโ€โ™‚๏ธ', 'alice'],
  1903. ['๐Ÿงโ€โ™€๏ธ', 'alice'],
  1904. ['๐Ÿง', 'alice'],
  1905. ['๐Ÿงโ€โ™‚๏ธ', 'alice'],
  1906. ['๐Ÿ‘ญ', 'alice'],
  1907. ['๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘', 'alice'],
  1908. ['๐Ÿ‘ฌ', 'alice'],
  1909. ['๐Ÿ‘ซ', 'alice'],
  1910. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘ฉ', 'alice'],
  1911. ['๐Ÿ’‘', 'alice'],
  1912. ['๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ', 'alice'],
  1913. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘จ', 'alice'],
  1914. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘ฉ', 'alice'],
  1915. ['๐Ÿ’', 'alice'],
  1916. ['๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ', 'alice'],
  1917. ['๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ', 'alice'],
  1918. ['๐Ÿ‘ช', 'alice'],
  1919. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ', 'alice'],
  1920. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง', 'alice'],
  1921. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice'],
  1922. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice'],
  1923. ['๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice'],
  1924. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ', 'alice'],
  1925. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ง', 'alice'],
  1926. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice'],
  1927. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice'],
  1928. ['๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice'],
  1929. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ', 'alice'],
  1930. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ง', 'alice'],
  1931. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice'],
  1932. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice'],
  1933. ['๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice'],
  1934. ['๐Ÿ‘จโ€๐Ÿ‘ฆ', 'alice'],
  1935. ['๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice'],
  1936. ['๐Ÿ‘จโ€๐Ÿ‘ง', 'alice'],
  1937. ['๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice'],
  1938. ['๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice'],
  1939. ['๐Ÿ‘ฉโ€๐Ÿ‘ฆ', 'alice'],
  1940. ['๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ', 'alice'],
  1941. ['๐Ÿ‘ฉโ€๐Ÿ‘ง', 'alice'],
  1942. ['๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ', 'alice'],
  1943. ['๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง', 'alice'],
  1944. ['๐Ÿ—ฃ', 'alice'],
  1945. ['๐Ÿ‘ค', 'alice'],
  1946. ['๐Ÿ‘ฅ', 'alice'],
  1947. ['๐Ÿซ‚', 'alice'],
  1948. ['๐Ÿ‘‹๐Ÿฝ', 'alice'],
  1949. ['๐Ÿคš๐Ÿฝ', 'alice'],
  1950. ['๐Ÿ–๐Ÿฝ', 'alice'],
  1951. ['โœ‹๐Ÿฝ', 'alice'],
  1952. ['๐Ÿ––๐Ÿฝ', 'alice'],
  1953. ['๐Ÿ‘Œ๐Ÿฝ', 'alice'],
  1954. ['๐ŸคŒ๐Ÿฝ', 'alice'],
  1955. ['๐Ÿค๐Ÿฝ', 'alice'],
  1956. ['โœŒ๐Ÿฝ', 'alice'],
  1957. ['๐Ÿคž๐Ÿฝ', 'alice'],
  1958. ['๐Ÿซฐ๐Ÿฝ', 'alice'],
  1959. ['๐ŸคŸ๐Ÿฝ', 'alice'],
  1960. ['๐Ÿค˜๐Ÿฝ', 'alice'],
  1961. ['๐Ÿค™๐Ÿฝ', 'alice'],
  1962. ['๐Ÿซต๐Ÿฝ', 'alice'],
  1963. ['๐Ÿซฑ๐Ÿฝ', 'alice'],
  1964. ['๐Ÿซฒ๐Ÿฝ', 'alice'],
  1965. ['๐Ÿซณ๐Ÿฝ', 'alice'],
  1966. ['๐Ÿซด๐Ÿฝ', 'alice'],
  1967. ['๐Ÿ‘ˆ๐Ÿฝ', 'alice'],
  1968. ['๐Ÿ‘‰๐Ÿฝ', 'alice'],
  1969. ['๐Ÿ‘†๐Ÿฝ', 'alice'],
  1970. ['๐Ÿ–•๐Ÿฝ', 'alice'],
  1971. ['๐Ÿ‘‡๐Ÿฝ', 'alice'],
  1972. ['โ˜๐Ÿฝ', 'alice'],
  1973. ['๐Ÿ‘๐Ÿฝ', 'alice'],
  1974. ['๐Ÿ‘Ž๐Ÿฝ', 'alice'],
  1975. ['โœŠ๐Ÿฝ', 'alice'],
  1976. ['๐Ÿ‘Š๐Ÿฝ', 'alice'],
  1977. ['๐Ÿค›๐Ÿฝ', 'alice'],
  1978. ['๐Ÿคœ๐Ÿฝ', 'alice'],
  1979. ['๐Ÿ‘๐Ÿฝ', 'alice'],
  1980. ['๐Ÿซถ๐Ÿฝ', 'alice'],
  1981. ['๐Ÿ™Œ๐Ÿฝ', 'alice'],
  1982. ['๐Ÿ‘๐Ÿฝ', 'alice'],
  1983. ['๐Ÿคฒ๐Ÿฝ', 'alice'],
  1984. ['๐Ÿ™๐Ÿฝ', 'alice'],
  1985. ['โœ๐Ÿฝ', 'alice'],
  1986. ['๐Ÿ’…๐Ÿฝ', 'alice'],
  1987. ['๐Ÿคณ๐Ÿฝ', 'alice'],
  1988. ['๐Ÿ’ช๐Ÿฝ', 'alice'],
  1989. ['๐Ÿฆต๐Ÿฝ', 'alice'],
  1990. ['๐Ÿฆถ๐Ÿฝ', 'alice'],
  1991. ['๐Ÿ‘‚๐Ÿฝ', 'alice'],
  1992. ['๐Ÿฆป๐Ÿฝ', 'alice'],
  1993. ['๐Ÿ‘ƒ๐Ÿฝ', 'alice'],
  1994. ['๐Ÿ‘ถ๐Ÿฝ', 'alice'],
  1995. ['๐Ÿ‘ง๐Ÿฝ', 'alice'],
  1996. ['๐Ÿง’๐Ÿฝ', 'alice'],
  1997. ['๐Ÿ‘ฆ๐Ÿฝ', 'alice'],
  1998. ['๐Ÿ‘ฉ๐Ÿฝ', 'alice'],
  1999. ['๐Ÿง‘๐Ÿฝ', 'alice'],
  2000. ['๐Ÿ‘จ๐Ÿฝ', 'alice'],
  2001. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฑ', 'alice'],
  2002. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฑ', 'alice'],
  2003. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆฑ', 'alice'],
  2004. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฐ', 'alice'],
  2005. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฐ', 'alice'],
  2006. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆฐ', 'alice'],
  2007. ['๐Ÿ‘ฑ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2008. ['๐Ÿ‘ฑ๐Ÿฝ', 'alice'],
  2009. ['๐Ÿ‘ฑ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2010. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆณ', 'alice'],
  2011. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆณ', 'alice'],
  2012. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆณ', 'alice'],
  2013. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฒ', 'alice'],
  2014. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฒ', 'alice'],
  2015. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿฆฒ', 'alice'],
  2016. ['๐Ÿง”๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2017. ['๐Ÿง”๐Ÿฝ', 'alice'],
  2018. ['๐Ÿง”๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2019. ['๐Ÿ‘ต๐Ÿฝ', 'alice'],
  2020. ['๐Ÿง“๐Ÿฝ', 'alice'],
  2021. ['๐Ÿ‘ด๐Ÿฝ', 'alice'],
  2022. ['๐Ÿ‘ฒ๐Ÿฝ', 'alice'],
  2023. ['๐Ÿ‘ณ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2024. ['๐Ÿ‘ณ๐Ÿฝ', 'alice'],
  2025. ['๐Ÿ‘ณ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2026. ['๐Ÿง•๐Ÿฝ', 'alice'],
  2027. ['๐Ÿ‘ฎ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2028. ['๐Ÿ‘ฎ๐Ÿฝ', 'alice'],
  2029. ['๐Ÿ‘ฎ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2030. ['๐Ÿ‘ท๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2031. ['๐Ÿ‘ท๐Ÿฝ', 'alice'],
  2032. ['๐Ÿ‘ท๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2033. ['๐Ÿ’‚๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2034. ['๐Ÿ’‚๐Ÿฝ', 'alice'],
  2035. ['๐Ÿ’‚๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2036. ['๐Ÿ•ต๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2037. ['๐Ÿ•ต๐Ÿฝ', 'alice'],
  2038. ['๐Ÿ•ต๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2039. ['๐Ÿ‘ฉ๐Ÿฝโ€โš•๏ธ', 'alice'],
  2040. ['๐Ÿง‘๐Ÿฝโ€โš•๏ธ', 'alice'],
  2041. ['๐Ÿ‘จ๐Ÿฝโ€โš•๏ธ', 'alice'],
  2042. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŒพ', 'alice'],
  2043. ['๐Ÿง‘๐Ÿฝโ€๐ŸŒพ', 'alice'],
  2044. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŒพ', 'alice'],
  2045. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿณ', 'alice'],
  2046. ['๐Ÿง‘๐Ÿฝโ€๐Ÿณ', 'alice'],
  2047. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿณ', 'alice'],
  2048. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŽ“', 'alice'],
  2049. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽ“', 'alice'],
  2050. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŽ“', 'alice'],
  2051. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŽค', 'alice'],
  2052. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽค', 'alice'],
  2053. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŽค', 'alice'],
  2054. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿซ', 'alice'],
  2055. ['๐Ÿง‘๐Ÿฝโ€๐Ÿซ', 'alice'],
  2056. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿซ', 'alice'],
  2057. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿญ', 'alice'],
  2058. ['๐Ÿง‘๐Ÿฝโ€๐Ÿญ', 'alice'],
  2059. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿญ', 'alice'],
  2060. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ป', 'alice'],
  2061. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป', 'alice'],
  2062. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป', 'alice'],
  2063. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ผ', 'alice'],
  2064. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ’ผ', 'alice'],
  2065. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ผ', 'alice'],
  2066. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ”ง', 'alice'],
  2067. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ”ง', 'alice'],
  2068. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ”ง', 'alice'],
  2069. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ”ฌ', 'alice'],
  2070. ['๐Ÿง‘๐Ÿฝโ€๐Ÿ”ฌ', 'alice'],
  2071. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ”ฌ', 'alice'],
  2072. ['๐Ÿ‘ฉ๐Ÿฝโ€๐ŸŽจ', 'alice'],
  2073. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽจ', 'alice'],
  2074. ['๐Ÿ‘จ๐Ÿฝโ€๐ŸŽจ', 'alice'],
  2075. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿš’', 'alice'],
  2076. ['๐Ÿง‘๐Ÿฝโ€๐Ÿš’', 'alice'],
  2077. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿš’', 'alice'],
  2078. ['๐Ÿ‘ฉ๐Ÿฝโ€โœˆ๏ธ', 'alice'],
  2079. ['๐Ÿง‘๐Ÿฝโ€โœˆ๏ธ', 'alice'],
  2080. ['๐Ÿ‘จ๐Ÿฝโ€โœˆ๏ธ', 'alice'],
  2081. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿš€', 'alice'],
  2082. ['๐Ÿง‘๐Ÿฝโ€๐Ÿš€', 'alice'],
  2083. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿš€', 'alice'],
  2084. ['๐Ÿ‘ฉ๐Ÿฝโ€โš–๏ธ', 'alice'],
  2085. ['๐Ÿง‘๐Ÿฝโ€โš–๏ธ', 'alice'],
  2086. ['๐Ÿ‘จ๐Ÿฝโ€โš–๏ธ', 'alice'],
  2087. ['๐Ÿ‘ฐ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2088. ['๐Ÿ‘ฐ๐Ÿฝ', 'alice'],
  2089. ['๐Ÿ‘ฐ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2090. ['๐Ÿคต๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2091. ['๐Ÿคต๐Ÿฝ', 'alice'],
  2092. ['๐Ÿคต๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2093. ['๐Ÿ‘ธ๐Ÿฝ', 'alice'],
  2094. ['๐Ÿซ…๐Ÿฝ', 'alice'],
  2095. ['๐Ÿคด๐Ÿฝ', 'alice'],
  2096. ['๐Ÿฅท๐Ÿฝ', 'alice'],
  2097. ['๐Ÿฆธ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2098. ['๐Ÿฆธ๐Ÿฝ', 'alice'],
  2099. ['๐Ÿฆธ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2100. ['๐Ÿฆน๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2101. ['๐Ÿฆน๐Ÿฝ', 'alice'],
  2102. ['๐Ÿฆน๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2103. ['๐Ÿคถ๐Ÿฝ', 'alice'],
  2104. ['๐Ÿง‘๐Ÿฝโ€๐ŸŽ„', 'alice'],
  2105. ['๐ŸŽ…๐Ÿฝ', 'alice'],
  2106. ['๐Ÿง™๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2107. ['๐Ÿง™๐Ÿฝ', 'alice'],
  2108. ['๐Ÿง™๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2109. ['๐Ÿง๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2110. ['๐Ÿง๐Ÿฝ', 'alice'],
  2111. ['๐Ÿง๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2112. ['๐Ÿง›๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2113. ['๐Ÿง›๐Ÿฝ', 'alice'],
  2114. ['๐Ÿง›๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2115. ['๐Ÿงœ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2116. ['๐Ÿงœ๐Ÿฝ', 'alice'],
  2117. ['๐Ÿงœ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2118. ['๐Ÿงš๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2119. ['๐Ÿงš๐Ÿฝ', 'alice'],
  2120. ['๐Ÿงš๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2121. ['๐Ÿ‘ผ๐Ÿฝ', 'alice'],
  2122. ['๐Ÿคฐ๐Ÿฝ', 'alice'],
  2123. ['๐Ÿซ„๐Ÿฝ', 'alice'],
  2124. ['๐Ÿซƒ๐Ÿฝ', 'alice'],
  2125. ['๐Ÿคฑ๐Ÿฝ', 'alice'],
  2126. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿผ', 'alice'],
  2127. ['๐Ÿง‘๐Ÿฝโ€๐Ÿผ', 'alice'],
  2128. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿผ', 'alice'],
  2129. ['๐Ÿ™‡๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2130. ['๐Ÿ™‡๐Ÿฝ', 'alice'],
  2131. ['๐Ÿ™‡๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2132. ['๐Ÿ’๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2133. ['๐Ÿ’๐Ÿฝ', 'alice'],
  2134. ['๐Ÿ’๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2135. ['๐Ÿ™…๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2136. ['๐Ÿ™…๐Ÿฝ', 'alice'],
  2137. ['๐Ÿ™…๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2138. ['๐Ÿ™†๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2139. ['๐Ÿ™†๐Ÿฝ', 'alice'],
  2140. ['๐Ÿ™†๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2141. ['๐Ÿ™‹๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2142. ['๐Ÿ™‹๐Ÿฝ', 'alice'],
  2143. ['๐Ÿ™‹๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2144. ['๐Ÿง๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2145. ['๐Ÿง๐Ÿฝ', 'alice'],
  2146. ['๐Ÿง๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2147. ['๐Ÿคฆ๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2148. ['๐Ÿคฆ๐Ÿฝ', 'alice'],
  2149. ['๐Ÿคฆ๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2150. ['๐Ÿคท๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2151. ['๐Ÿคท๐Ÿฝ', 'alice'],
  2152. ['๐Ÿคท๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2153. ['๐Ÿ™Ž๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2154. ['๐Ÿ™Ž๐Ÿฝ', 'alice'],
  2155. ['๐Ÿ™Ž๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2156. ['๐Ÿ™๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2157. ['๐Ÿ™๐Ÿฝ', 'alice'],
  2158. ['๐Ÿ™๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2159. ['๐Ÿ’‡๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2160. ['๐Ÿ’‡๐Ÿฝ', 'alice'],
  2161. ['๐Ÿ’‡๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2162. ['๐Ÿ’†๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2163. ['๐Ÿ’†๐Ÿฝ', 'alice'],
  2164. ['๐Ÿ’†๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2165. ['๐Ÿง–๐Ÿฝโ€โ™€๏ธ', 'alice'],
  2166. ['๐Ÿง–๐Ÿฝ', 'alice'],
  2167. ['๐Ÿง–๐Ÿฝโ€โ™‚๏ธ', 'alice'],
  2168. ['๐Ÿ’ƒ๐Ÿฝ', 'alice'],
  2169. ['๐Ÿ•บ๐Ÿฝ', 'alice'],
  2170. ['๐Ÿ•ด๐Ÿฝ', 'alice'],
  2171. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฝ', 'alice'],
  2172. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฝ', 'alice'],
  2173. ],
  2174. ],
  2175. ];
  2176. }
  2177. /**
  2178. * @dataProvider providerTestRetrieveAllReactionsWithSpecificReaction
  2179. */
  2180. public function testRetrieveAllReactionsWithSpecificReaction(array $comments, string $reaction, array $expected) {
  2181. $this->skipIfNotSupport4ByteUTF();
  2182. $manager = $this->getManager();
  2183. $processedComments = $this->proccessComments($comments);
  2184. $comment = reset($processedComments);
  2185. $all = $manager->retrieveAllReactionsWithSpecificReaction($comment->getId(), $reaction);
  2186. $actual = array_map(function ($row) {
  2187. return [
  2188. 'message' => $row->getMessage(),
  2189. 'actorId' => $row->getActorId(),
  2190. ];
  2191. }, $all);
  2192. $this->assertEqualsCanonicalizing($expected, $actual);
  2193. }
  2194. public function providerTestRetrieveAllReactionsWithSpecificReaction(): array {
  2195. return [
  2196. [
  2197. [
  2198. ['message', 'alice', 'comment', null],
  2199. ],
  2200. '๐Ÿ‘Ž',
  2201. [],
  2202. ],
  2203. [
  2204. [
  2205. ['message', 'alice', 'comment', null],
  2206. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  2207. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  2208. ],
  2209. '๐Ÿ‘',
  2210. [
  2211. ['๐Ÿ‘', 'alice'],
  2212. ['๐Ÿ‘', 'frank'],
  2213. ],
  2214. ],
  2215. [
  2216. [
  2217. ['message', 'alice', 'comment', null],
  2218. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  2219. ['๐Ÿ‘Ž', 'alice', 'reaction', 'message#alice'],
  2220. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  2221. ],
  2222. '๐Ÿ‘Ž',
  2223. [
  2224. ['๐Ÿ‘Ž', 'alice'],
  2225. ],
  2226. ],
  2227. ];
  2228. }
  2229. /**
  2230. * @dataProvider providerTestGetReactionComment
  2231. */
  2232. public function testGetReactionComment(array $comments, array $expected, bool $notFound) {
  2233. $this->skipIfNotSupport4ByteUTF();
  2234. $manager = $this->getManager();
  2235. $processedComments = $this->proccessComments($comments);
  2236. $keys = ['message', 'actorId', 'verb', 'parent'];
  2237. $expected = array_combine($keys, $expected);
  2238. if ($notFound) {
  2239. $this->expectException(\OCP\Comments\NotFoundException::class);
  2240. }
  2241. $comment = $processedComments[$expected['message'] . '#' . $expected['actorId']];
  2242. $actual = $manager->getReactionComment($comment->getParentId(), $comment->getActorType(), $comment->getActorId(), $comment->getMessage());
  2243. if (!$notFound) {
  2244. $this->assertEquals($expected['message'], $actual->getMessage());
  2245. $this->assertEquals($expected['actorId'], $actual->getActorId());
  2246. $this->assertEquals($expected['verb'], $actual->getVerb());
  2247. $this->assertEquals($processedComments[$expected['parent']]->getId(), $actual->getParentId());
  2248. }
  2249. }
  2250. public function providerTestGetReactionComment(): array {
  2251. return [
  2252. [
  2253. [
  2254. ['message', 'Matthew', 'comment', null],
  2255. ['๐Ÿ‘', 'Matthew', 'reaction', 'message#Matthew'],
  2256. ['๐Ÿ‘', 'Mark', 'reaction', 'message#Matthew'],
  2257. ['๐Ÿ‘', 'Luke', 'reaction', 'message#Matthew'],
  2258. ['๐Ÿ‘', 'John', 'reaction', 'message#Matthew'],
  2259. ],
  2260. ['๐Ÿ‘', 'Matthew', 'reaction', 'message#Matthew'],
  2261. false,
  2262. ],
  2263. [
  2264. [
  2265. ['message', 'Matthew', 'comment', null],
  2266. ['๐Ÿ‘', 'Matthew', 'reaction', 'message#Matthew'],
  2267. ['๐Ÿ‘', 'Mark', 'reaction', 'message#Matthew'],
  2268. ['๐Ÿ‘', 'Luke', 'reaction', 'message#Matthew'],
  2269. ['๐Ÿ‘', 'John', 'reaction', 'message#Matthew'],
  2270. ],
  2271. ['๐Ÿ‘', 'Mark', 'reaction', 'message#Matthew'],
  2272. false,
  2273. ],
  2274. [
  2275. [
  2276. ['message', 'Matthew', 'comment', null],
  2277. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2278. ],
  2279. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2280. false,
  2281. ],
  2282. [
  2283. [
  2284. ['message', 'Matthew', 'comment', null],
  2285. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2286. ['๐Ÿ‘Ž', 'Matthew', 'reaction_deleted', 'message#Matthew'],
  2287. ],
  2288. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2289. true,
  2290. ],
  2291. ];
  2292. }
  2293. /**
  2294. * @dataProvider providerTestReactionMessageSize
  2295. */
  2296. public function testReactionMessageSize($reactionString, $valid) {
  2297. $this->skipIfNotSupport4ByteUTF();
  2298. if (!$valid) {
  2299. $this->expectException(\UnexpectedValueException::class);
  2300. }
  2301. $manager = $this->getManager();
  2302. $comment = new Comment();
  2303. $comment->setMessage($reactionString)
  2304. ->setVerb('reaction')
  2305. ->setActor('users', 'alice')
  2306. ->setObject('files', 'file64');
  2307. $status = $manager->save($comment);
  2308. $this->assertTrue($status);
  2309. }
  2310. public function providerTestReactionMessageSize(): array {
  2311. return [
  2312. ['a', false],
  2313. ['1', false],
  2314. ['๐Ÿ‘', true],
  2315. ['๐Ÿ‘๐Ÿ‘', false],
  2316. ['๐Ÿ‘๐Ÿฝ', true],
  2317. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป', true],
  2318. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป๐Ÿ‘', false],
  2319. ];
  2320. }
  2321. /**
  2322. * @dataProvider providerTestReactionsSummarizeOrdered
  2323. */
  2324. public function testReactionsSummarizeOrdered(array $comments, array $expected, bool $isFullMatch) {
  2325. $this->skipIfNotSupport4ByteUTF();
  2326. $manager = $this->getManager();
  2327. $processedComments = $this->proccessComments($comments);
  2328. $comment = end($processedComments);
  2329. $actual = $manager->get($comment->getParentId());
  2330. if ($isFullMatch) {
  2331. $this->assertSame($expected, $actual->getReactions());
  2332. } else {
  2333. $subResult = array_slice($actual->getReactions(), 0, count($expected));
  2334. $this->assertSame($expected, $subResult);
  2335. }
  2336. }
  2337. public function providerTestReactionsSummarizeOrdered(): array {
  2338. return [
  2339. [
  2340. [
  2341. ['message', 'alice', 'comment', null],
  2342. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  2343. ],
  2344. ['๐Ÿ‘' => 1],
  2345. true,
  2346. ],
  2347. [
  2348. [
  2349. ['message', 'alice', 'comment', null],
  2350. ['๐Ÿ‘Ž', 'John', 'reaction', 'message#alice'],
  2351. ['๐Ÿ’ผ', 'Luke', 'reaction', 'message#alice'],
  2352. ['๐Ÿ“‹', 'Luke', 'reaction', 'message#alice'],
  2353. ['๐Ÿš€', 'Luke', 'reaction', 'message#alice'],
  2354. ['๐Ÿ–ค', 'Luke', 'reaction', 'message#alice'],
  2355. ['๐Ÿ˜œ', 'Luke', 'reaction', 'message#alice'],
  2356. ['๐ŸŒ–', 'Luke', 'reaction', 'message#alice'],
  2357. ['๐Ÿ’–', 'Luke', 'reaction', 'message#alice'],
  2358. ['๐Ÿ“ฅ', 'Luke', 'reaction', 'message#alice'],
  2359. ['๐Ÿ‰', 'Luke', 'reaction', 'message#alice'],
  2360. ['โ˜•', 'Luke', 'reaction', 'message#alice'],
  2361. ['๐Ÿ„', 'Luke', 'reaction', 'message#alice'],
  2362. ['๐Ÿ•', 'Luke', 'reaction', 'message#alice'],
  2363. ['๐Ÿˆ', 'Luke', 'reaction', 'message#alice'],
  2364. ['๐Ÿ›‚', 'Luke', 'reaction', 'message#alice'],
  2365. ['๐Ÿ•ธ', 'Luke', 'reaction', 'message#alice'],
  2366. ['๐Ÿฐ', 'Luke', 'reaction', 'message#alice'],
  2367. ['โš™๏ธ', 'Luke', 'reaction', 'message#alice'],
  2368. ['๐Ÿšจ', 'Luke', 'reaction', 'message#alice'],
  2369. ['๐Ÿ‘ฅ', 'Luke', 'reaction', 'message#alice'],
  2370. ['๐Ÿ‘', 'Paul', 'reaction', 'message#alice'],
  2371. ['๐Ÿ‘', 'Peter', 'reaction', 'message#alice'],
  2372. ['๐Ÿ’œ', 'Matthew', 'reaction', 'message#alice'],
  2373. ['๐Ÿ’œ', 'Mark', 'reaction', 'message#alice'],
  2374. ['๐Ÿ’œ', 'Luke', 'reaction', 'message#alice'],
  2375. ],
  2376. [
  2377. '๐Ÿ’œ' => 3,
  2378. '๐Ÿ‘' => 2,
  2379. ],
  2380. false,
  2381. ],
  2382. ];
  2383. }
  2384. }