ManagerTest.php 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602
  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\DB\QueryBuilder\IQueryBuilder;
  17. use OCP\EventDispatcher\IEventDispatcher;
  18. use OCP\Files\Folder;
  19. use OCP\Files\IRootFolder;
  20. use OCP\IConfig;
  21. use OCP\IDBConnection;
  22. use OCP\IInitialStateService;
  23. use OCP\IUser;
  24. use OCP\Server;
  25. use Psr\Log\LoggerInterface;
  26. use Test\TestCase;
  27. /**
  28. * Class ManagerTest
  29. *
  30. * @group DB
  31. */
  32. class ManagerTest extends TestCase {
  33. /** @var IDBConnection */
  34. private $connection;
  35. /** @var \PHPUnit\Framework\MockObject\MockObject|IRootFolder */
  36. private $rootFolder;
  37. protected function setUp(): void {
  38. parent::setUp();
  39. $this->connection = \OC::$server->getDatabaseConnection();
  40. $this->rootFolder = $this->createMock(IRootFolder::class);
  41. $sql = $this->connection->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*comments`');
  42. $this->connection->prepare($sql)->execute();
  43. $sql = $this->connection->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*reactions`');
  44. $this->connection->prepare($sql)->execute();
  45. }
  46. protected function addDatabaseEntry($parentId, $topmostParentId, $creationDT = null, $latestChildDT = null, $objectId = null, $expireDate = null) {
  47. if (is_null($creationDT)) {
  48. $creationDT = new \DateTime();
  49. }
  50. if (is_null($latestChildDT)) {
  51. $latestChildDT = new \DateTime('yesterday');
  52. }
  53. if (is_null($objectId)) {
  54. $objectId = 'file64';
  55. }
  56. $qb = $this->connection->getQueryBuilder();
  57. $qb
  58. ->insert('comments')
  59. ->values([
  60. 'parent_id' => $qb->createNamedParameter($parentId),
  61. 'topmost_parent_id' => $qb->createNamedParameter($topmostParentId),
  62. 'children_count' => $qb->createNamedParameter(2),
  63. 'actor_type' => $qb->createNamedParameter('users'),
  64. 'actor_id' => $qb->createNamedParameter('alice'),
  65. 'message' => $qb->createNamedParameter('nice one'),
  66. 'verb' => $qb->createNamedParameter('comment'),
  67. 'creation_timestamp' => $qb->createNamedParameter($creationDT, IQueryBuilder::PARAM_DATETIME_MUTABLE),
  68. 'latest_child_timestamp' => $qb->createNamedParameter($latestChildDT, IQueryBuilder::PARAM_DATETIME_MUTABLE),
  69. 'object_type' => $qb->createNamedParameter('files'),
  70. 'object_id' => $qb->createNamedParameter($objectId),
  71. 'expire_date' => $qb->createNamedParameter($expireDate, IQueryBuilder::PARAM_DATETIME_MUTABLE),
  72. 'reference_id' => $qb->createNamedParameter('referenceId'),
  73. 'meta_data' => $qb->createNamedParameter(json_encode(['last_edit_actor_id' => 'admin'])),
  74. ])
  75. ->execute();
  76. return $qb->getLastInsertId();
  77. }
  78. protected function getManager() {
  79. return new Manager(
  80. $this->connection,
  81. $this->createMock(LoggerInterface::class),
  82. $this->createMock(IConfig::class),
  83. $this->createMock(ITimeFactory::class),
  84. new EmojiHelper($this->connection),
  85. $this->createMock(IInitialStateService::class),
  86. $this->rootFolder,
  87. $this->createMock(IEventDispatcher::class),
  88. );
  89. }
  90. public function testGetCommentNotFound(): void {
  91. $this->expectException(\OCP\Comments\NotFoundException::class);
  92. $manager = $this->getManager();
  93. $manager->get('22');
  94. }
  95. public function testGetCommentNotFoundInvalidInput(): void {
  96. $this->expectException(\InvalidArgumentException::class);
  97. $manager = $this->getManager();
  98. $manager->get('unexisting22');
  99. }
  100. public function testGetComment(): void {
  101. $manager = $this->getManager();
  102. $creationDT = new \DateTime();
  103. $latestChildDT = new \DateTime('yesterday');
  104. $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder();
  105. $qb
  106. ->insert('comments')
  107. ->values([
  108. 'parent_id' => $qb->createNamedParameter('2'),
  109. 'topmost_parent_id' => $qb->createNamedParameter('1'),
  110. 'children_count' => $qb->createNamedParameter(2),
  111. 'actor_type' => $qb->createNamedParameter('users'),
  112. 'actor_id' => $qb->createNamedParameter('alice'),
  113. 'message' => $qb->createNamedParameter('nice one'),
  114. 'verb' => $qb->createNamedParameter('comment'),
  115. 'creation_timestamp' => $qb->createNamedParameter($creationDT, 'datetime'),
  116. 'latest_child_timestamp' => $qb->createNamedParameter($latestChildDT, 'datetime'),
  117. 'object_type' => $qb->createNamedParameter('files'),
  118. 'object_id' => $qb->createNamedParameter('file64'),
  119. 'reference_id' => $qb->createNamedParameter('referenceId'),
  120. 'meta_data' => $qb->createNamedParameter(json_encode(['last_edit_actor_id' => 'admin'])),
  121. ])
  122. ->execute();
  123. $id = strval($qb->getLastInsertId());
  124. $comment = $manager->get($id);
  125. $this->assertTrue($comment instanceof IComment);
  126. $this->assertSame($comment->getId(), $id);
  127. $this->assertSame($comment->getParentId(), '2');
  128. $this->assertSame($comment->getTopmostParentId(), '1');
  129. $this->assertSame($comment->getChildrenCount(), 2);
  130. $this->assertSame($comment->getActorType(), 'users');
  131. $this->assertSame($comment->getActorId(), 'alice');
  132. $this->assertSame($comment->getMessage(), 'nice one');
  133. $this->assertSame($comment->getVerb(), 'comment');
  134. $this->assertSame($comment->getObjectType(), 'files');
  135. $this->assertSame($comment->getObjectId(), 'file64');
  136. $this->assertEquals($comment->getCreationDateTime()->getTimestamp(), $creationDT->getTimestamp());
  137. $this->assertEquals($comment->getLatestChildDateTime(), $latestChildDT);
  138. $this->assertEquals($comment->getReferenceId(), 'referenceId');
  139. $this->assertEquals($comment->getMetaData(), ['last_edit_actor_id' => 'admin']);
  140. }
  141. public function testGetTreeNotFound(): void {
  142. $this->expectException(\OCP\Comments\NotFoundException::class);
  143. $manager = $this->getManager();
  144. $manager->getTree('22');
  145. }
  146. public function testGetTreeNotFoundInvalidIpnut(): void {
  147. $this->expectException(\InvalidArgumentException::class);
  148. $manager = $this->getManager();
  149. $manager->getTree('unexisting22');
  150. }
  151. public function testGetTree(): void {
  152. $headId = $this->addDatabaseEntry(0, 0);
  153. $this->addDatabaseEntry($headId, $headId, new \DateTime('-3 hours'));
  154. $this->addDatabaseEntry($headId, $headId, new \DateTime('-2 hours'));
  155. $id = $this->addDatabaseEntry($headId, $headId, new \DateTime('-1 hour'));
  156. $manager = $this->getManager();
  157. $tree = $manager->getTree($headId);
  158. // Verifying the root comment
  159. $this->assertTrue(isset($tree['comment']));
  160. $this->assertTrue($tree['comment'] instanceof IComment);
  161. $this->assertSame($tree['comment']->getId(), strval($headId));
  162. $this->assertTrue(isset($tree['replies']));
  163. $this->assertSame(count($tree['replies']), 3);
  164. // one level deep
  165. foreach ($tree['replies'] as $reply) {
  166. $this->assertTrue($reply['comment'] instanceof IComment);
  167. $this->assertSame($reply['comment']->getId(), strval($id));
  168. $this->assertSame(count($reply['replies']), 0);
  169. $id--;
  170. }
  171. }
  172. public function testGetTreeNoReplies(): void {
  173. $id = $this->addDatabaseEntry(0, 0);
  174. $manager = $this->getManager();
  175. $tree = $manager->getTree($id);
  176. // Verifying the root comment
  177. $this->assertTrue(isset($tree['comment']));
  178. $this->assertTrue($tree['comment'] instanceof IComment);
  179. $this->assertSame($tree['comment']->getId(), strval($id));
  180. $this->assertTrue(isset($tree['replies']));
  181. $this->assertSame(count($tree['replies']), 0);
  182. // one level deep
  183. foreach ($tree['replies'] as $reply) {
  184. throw new \Exception('This ain`t happen');
  185. }
  186. }
  187. public function testGetTreeWithLimitAndOffset(): void {
  188. $headId = $this->addDatabaseEntry(0, 0);
  189. $this->addDatabaseEntry($headId, $headId, new \DateTime('-3 hours'));
  190. $this->addDatabaseEntry($headId, $headId, new \DateTime('-2 hours'));
  191. $this->addDatabaseEntry($headId, $headId, new \DateTime('-1 hour'));
  192. $idToVerify = $this->addDatabaseEntry($headId, $headId, new \DateTime());
  193. $manager = $this->getManager();
  194. for ($offset = 0; $offset < 3; $offset += 2) {
  195. $tree = $manager->getTree(strval($headId), 2, $offset);
  196. // Verifying the root comment
  197. $this->assertTrue(isset($tree['comment']));
  198. $this->assertTrue($tree['comment'] instanceof IComment);
  199. $this->assertSame($tree['comment']->getId(), strval($headId));
  200. $this->assertTrue(isset($tree['replies']));
  201. $this->assertSame(count($tree['replies']), 2);
  202. // one level deep
  203. foreach ($tree['replies'] as $reply) {
  204. $this->assertTrue($reply['comment'] instanceof IComment);
  205. $this->assertSame($reply['comment']->getId(), strval($idToVerify));
  206. $this->assertSame(count($reply['replies']), 0);
  207. $idToVerify--;
  208. }
  209. }
  210. }
  211. public function testGetForObject(): void {
  212. $this->addDatabaseEntry(0, 0);
  213. $manager = $this->getManager();
  214. $comments = $manager->getForObject('files', 'file64');
  215. $this->assertTrue(is_array($comments));
  216. $this->assertSame(count($comments), 1);
  217. $this->assertTrue($comments[0] instanceof IComment);
  218. $this->assertSame($comments[0]->getMessage(), 'nice one');
  219. }
  220. public function testGetForObjectWithLimitAndOffset(): void {
  221. $this->addDatabaseEntry(0, 0, new \DateTime('-6 hours'));
  222. $this->addDatabaseEntry(0, 0, new \DateTime('-5 hours'));
  223. $this->addDatabaseEntry(1, 1, new \DateTime('-4 hours'));
  224. $this->addDatabaseEntry(0, 0, new \DateTime('-3 hours'));
  225. $this->addDatabaseEntry(2, 2, new \DateTime('-2 hours'));
  226. $this->addDatabaseEntry(2, 2, new \DateTime('-1 hours'));
  227. $idToVerify = $this->addDatabaseEntry(3, 1, new \DateTime());
  228. $manager = $this->getManager();
  229. $offset = 0;
  230. do {
  231. $comments = $manager->getForObject('files', 'file64', 3, $offset);
  232. $this->assertTrue(is_array($comments));
  233. foreach ($comments as $comment) {
  234. $this->assertTrue($comment instanceof IComment);
  235. $this->assertSame($comment->getMessage(), 'nice one');
  236. $this->assertSame($comment->getId(), strval($idToVerify));
  237. $idToVerify--;
  238. }
  239. $offset += 3;
  240. } while (count($comments) > 0);
  241. }
  242. public function testGetForObjectWithDateTimeConstraint(): void {
  243. $this->addDatabaseEntry(0, 0, new \DateTime('-6 hours'));
  244. $this->addDatabaseEntry(0, 0, new \DateTime('-5 hours'));
  245. $id1 = $this->addDatabaseEntry(0, 0, new \DateTime('-3 hours'));
  246. $id2 = $this->addDatabaseEntry(2, 2, new \DateTime('-2 hours'));
  247. $manager = $this->getManager();
  248. $comments = $manager->getForObject('files', 'file64', 0, 0, new \DateTime('-4 hours'));
  249. $this->assertSame(count($comments), 2);
  250. $this->assertSame($comments[0]->getId(), strval($id2));
  251. $this->assertSame($comments[1]->getId(), strval($id1));
  252. }
  253. public function testGetForObjectWithLimitAndOffsetAndDateTimeConstraint(): void {
  254. $this->addDatabaseEntry(0, 0, new \DateTime('-7 hours'));
  255. $this->addDatabaseEntry(0, 0, new \DateTime('-6 hours'));
  256. $this->addDatabaseEntry(1, 1, new \DateTime('-5 hours'));
  257. $this->addDatabaseEntry(0, 0, new \DateTime('-3 hours'));
  258. $this->addDatabaseEntry(2, 2, new \DateTime('-2 hours'));
  259. $this->addDatabaseEntry(2, 2, new \DateTime('-1 hours'));
  260. $idToVerify = $this->addDatabaseEntry(3, 1, new \DateTime());
  261. $manager = $this->getManager();
  262. $offset = 0;
  263. do {
  264. $comments = $manager->getForObject('files', 'file64', 3, $offset, new \DateTime('-4 hours'));
  265. $this->assertTrue(is_array($comments));
  266. foreach ($comments as $comment) {
  267. $this->assertTrue($comment instanceof IComment);
  268. $this->assertSame($comment->getMessage(), 'nice one');
  269. $this->assertSame($comment->getId(), strval($idToVerify));
  270. $this->assertTrue(intval($comment->getId()) >= 4);
  271. $idToVerify--;
  272. }
  273. $offset += 3;
  274. } while (count($comments) > 0);
  275. }
  276. public function testGetNumberOfCommentsForObject(): void {
  277. for ($i = 1; $i < 5; $i++) {
  278. $this->addDatabaseEntry(0, 0);
  279. }
  280. $manager = $this->getManager();
  281. $amount = $manager->getNumberOfCommentsForObject('untype', '00');
  282. $this->assertSame($amount, 0);
  283. $amount = $manager->getNumberOfCommentsForObject('files', 'file64');
  284. $this->assertSame($amount, 4);
  285. }
  286. public function testGetNumberOfUnreadCommentsForFolder(): void {
  287. $folder = $this->createMock(Folder::class);
  288. $fileIds = range(1111, 1114);
  289. $children = array_map(function (int $id) {
  290. $file = $this->createMock(Folder::class);
  291. $file->method('getId')
  292. ->willReturn($id);
  293. return $file;
  294. }, $fileIds);
  295. $folder->method('getId')->willReturn(1000);
  296. $folder->method('getDirectoryListing')->willReturn($children);
  297. $this->rootFolder->method('getFirstNodeById')
  298. ->with($folder->getId())
  299. ->willReturn($folder);
  300. // 2 comment for 1111 with 1 before read marker
  301. // 2 comments for 1112 with no read marker
  302. // 1 comment for 1113 before read marker
  303. // 1 comment for 1114 with no read marker
  304. $this->addDatabaseEntry(0, 0, null, null, $fileIds[1]);
  305. for ($i = 0; $i < 4; $i++) {
  306. $this->addDatabaseEntry(0, 0, null, null, $fileIds[$i]);
  307. }
  308. $this->addDatabaseEntry(0, 0, (new \DateTime())->modify('-2 days'), null, $fileIds[0]);
  309. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  310. $user = $this->createMock(IUser::class);
  311. $user->expects($this->any())
  312. ->method('getUID')
  313. ->willReturn('comment_test');
  314. $manager = $this->getManager();
  315. $manager->setReadMark('files', (string)$fileIds[0], (new \DateTime())->modify('-1 days'), $user);
  316. $manager->setReadMark('files', (string)$fileIds[2], (new \DateTime()), $user);
  317. $amount = $manager->getNumberOfUnreadCommentsForFolder($folder->getId(), $user);
  318. $this->assertEquals([
  319. $fileIds[0] => 1,
  320. $fileIds[1] => 2,
  321. $fileIds[3] => 1,
  322. ], $amount);
  323. }
  324. /**
  325. * @dataProvider dataGetForObjectSince
  326. * @param $lastKnown
  327. * @param $order
  328. * @param $limit
  329. * @param $resultFrom
  330. * @param $resultTo
  331. */
  332. public function testGetForObjectSince($lastKnown, $order, $limit, $resultFrom, $resultTo): void {
  333. $ids = [];
  334. $ids[] = $this->addDatabaseEntry(0, 0);
  335. $ids[] = $this->addDatabaseEntry(0, 0);
  336. $ids[] = $this->addDatabaseEntry(0, 0);
  337. $ids[] = $this->addDatabaseEntry(0, 0);
  338. $ids[] = $this->addDatabaseEntry(0, 0);
  339. $manager = $this->getManager();
  340. $comments = $manager->getForObjectSince('files', 'file64', ($lastKnown === null ? 0 : $ids[$lastKnown]), $order, $limit);
  341. $expected = array_slice($ids, $resultFrom, $resultTo - $resultFrom + 1);
  342. if ($order === 'desc') {
  343. $expected = array_reverse($expected);
  344. }
  345. $this->assertSame($expected, array_map(function (IComment $c) {
  346. return (int)$c->getId();
  347. }, $comments));
  348. }
  349. public function dataGetForObjectSince() {
  350. return [
  351. [null, 'asc', 20, 0, 4],
  352. [null, 'asc', 2, 0, 1],
  353. [null, 'desc', 20, 0, 4],
  354. [null, 'desc', 2, 3, 4],
  355. [1, 'asc', 20, 2, 4],
  356. [1, 'asc', 2, 2, 3],
  357. [3, 'desc', 20, 0, 2],
  358. [3, 'desc', 2, 1, 2],
  359. ];
  360. }
  361. public function invalidCreateArgsProvider() {
  362. return [
  363. ['', 'aId-1', 'oType-1', 'oId-1'],
  364. ['aType-1', '', 'oType-1', 'oId-1'],
  365. ['aType-1', 'aId-1', '', 'oId-1'],
  366. ['aType-1', 'aId-1', 'oType-1', ''],
  367. [1, 'aId-1', 'oType-1', 'oId-1'],
  368. ['aType-1', 1, 'oType-1', 'oId-1'],
  369. ['aType-1', 'aId-1', 1, 'oId-1'],
  370. ['aType-1', 'aId-1', 'oType-1', 1],
  371. ];
  372. }
  373. /**
  374. * @dataProvider invalidCreateArgsProvider
  375. * @param string $aType
  376. * @param string $aId
  377. * @param string $oType
  378. * @param string $oId
  379. */
  380. public function testCreateCommentInvalidArguments($aType, $aId, $oType, $oId): void {
  381. $this->expectException(\InvalidArgumentException::class);
  382. $manager = $this->getManager();
  383. $manager->create($aType, $aId, $oType, $oId);
  384. }
  385. public function testCreateComment(): void {
  386. $actorType = 'bot';
  387. $actorId = 'bob';
  388. $objectType = 'weather';
  389. $objectId = 'bielefeld';
  390. $comment = $this->getManager()->create($actorType, $actorId, $objectType, $objectId);
  391. $this->assertTrue($comment instanceof IComment);
  392. $this->assertSame($comment->getActorType(), $actorType);
  393. $this->assertSame($comment->getActorId(), $actorId);
  394. $this->assertSame($comment->getObjectType(), $objectType);
  395. $this->assertSame($comment->getObjectId(), $objectId);
  396. }
  397. public function testDelete(): void {
  398. $this->expectException(\OCP\Comments\NotFoundException::class);
  399. $manager = $this->getManager();
  400. $done = $manager->delete('404');
  401. $this->assertFalse($done);
  402. $done = $manager->delete('%');
  403. $this->assertFalse($done);
  404. $done = $manager->delete('');
  405. $this->assertFalse($done);
  406. $id = strval($this->addDatabaseEntry(0, 0));
  407. $comment = $manager->get($id);
  408. $this->assertTrue($comment instanceof IComment);
  409. $done = $manager->delete($id);
  410. $this->assertTrue($done);
  411. $manager->get($id);
  412. }
  413. /**
  414. * @dataProvider providerTestSave
  415. */
  416. public function testSave(string $message, string $actorId, string $verb, ?string $parentId, ?string $id = ''): IComment {
  417. $manager = $this->getManager();
  418. $comment = new Comment();
  419. $comment
  420. ->setId($id)
  421. ->setActor('users', $actorId)
  422. ->setObject('files', 'file64')
  423. ->setMessage($message)
  424. ->setVerb($verb);
  425. if ($parentId) {
  426. $comment->setParentId($parentId);
  427. }
  428. $saveSuccessful = $manager->save($comment);
  429. $this->assertTrue($saveSuccessful);
  430. $this->assertTrue($comment->getId() !== '');
  431. $this->assertTrue($comment->getId() !== '0');
  432. $this->assertTrue(!is_null($comment->getCreationDateTime()));
  433. $loadedComment = $manager->get($comment->getId());
  434. $this->assertSame($comment->getMessage(), $loadedComment->getMessage());
  435. $this->assertEquals($comment->getCreationDateTime()->getTimestamp(), $loadedComment->getCreationDateTime()->getTimestamp());
  436. return $comment;
  437. }
  438. public function providerTestSave(): array {
  439. return [
  440. ['very beautiful, I am impressed!', 'alice', 'comment', null]
  441. ];
  442. }
  443. public function testSaveUpdate(): void {
  444. $manager = $this->getManager();
  445. $comment = new Comment();
  446. $comment
  447. ->setActor('users', 'alice')
  448. ->setObject('files', 'file64')
  449. ->setMessage('very beautiful, I am impressed!')
  450. ->setVerb('comment')
  451. ->setExpireDate(new \DateTime('+2 hours'));
  452. $manager->save($comment);
  453. $loadedComment = $manager->get($comment->getId());
  454. // Compare current object with database values
  455. $this->assertSame($comment->getMessage(), $loadedComment->getMessage());
  456. $this->assertSame(
  457. $comment->getExpireDate()->format('Y-m-d H:i:s'),
  458. $loadedComment->getExpireDate()->format('Y-m-d H:i:s')
  459. );
  460. // Preserve the original comment to compare after update
  461. $original = clone $comment;
  462. // Update values
  463. $comment->setMessage('very beautiful, I am really so much impressed!')
  464. ->setExpireDate(new \DateTime('+1 hours'));
  465. $manager->save($comment);
  466. $loadedComment = $manager->get($comment->getId());
  467. // Compare current object with database values
  468. $this->assertSame($comment->getMessage(), $loadedComment->getMessage());
  469. $this->assertSame(
  470. $comment->getExpireDate()->format('Y-m-d H:i:s'),
  471. $loadedComment->getExpireDate()->format('Y-m-d H:i:s')
  472. );
  473. // Compare original object with database values
  474. $this->assertNotSame($original->getMessage(), $loadedComment->getMessage());
  475. $this->assertNotSame(
  476. $original->getExpireDate()->format('Y-m-d H:i:s'),
  477. $loadedComment->getExpireDate()->format('Y-m-d H:i:s')
  478. );
  479. }
  480. public function testSaveUpdateException(): void {
  481. $this->expectException(\OCP\Comments\NotFoundException::class);
  482. $manager = $this->getManager();
  483. $comment = new Comment();
  484. $comment
  485. ->setActor('users', 'alice')
  486. ->setObject('files', 'file64')
  487. ->setMessage('very beautiful, I am impressed!')
  488. ->setVerb('comment');
  489. $manager->save($comment);
  490. $manager->delete($comment->getId());
  491. $comment->setMessage('very beautiful, I am really so much impressed!');
  492. $manager->save($comment);
  493. }
  494. public function testSaveIncomplete(): void {
  495. $this->expectException(\UnexpectedValueException::class);
  496. $manager = $this->getManager();
  497. $comment = new Comment();
  498. $comment->setMessage('from no one to nothing');
  499. $manager->save($comment);
  500. }
  501. public function testSaveAsChild(): void {
  502. $id = $this->addDatabaseEntry(0, 0);
  503. $manager = $this->getManager();
  504. for ($i = 0; $i < 3; $i++) {
  505. $comment = new Comment();
  506. $comment
  507. ->setActor('users', 'alice')
  508. ->setObject('files', 'file64')
  509. ->setParentId(strval($id))
  510. ->setMessage('full ack')
  511. ->setVerb('comment')
  512. // setting the creation time avoids using sleep() while making sure to test with different timestamps
  513. ->setCreationDateTime(new \DateTime('+' . $i . ' minutes'));
  514. $manager->save($comment);
  515. $this->assertSame($comment->getTopmostParentId(), strval($id));
  516. $parentComment = $manager->get(strval($id));
  517. $this->assertSame($parentComment->getChildrenCount(), $i + 1);
  518. $this->assertEquals($parentComment->getLatestChildDateTime()->getTimestamp(), $comment->getCreationDateTime()->getTimestamp());
  519. }
  520. }
  521. public function invalidActorArgsProvider() {
  522. return
  523. [
  524. ['', ''],
  525. [1, 'alice'],
  526. ['users', 1],
  527. ];
  528. }
  529. /**
  530. * @dataProvider invalidActorArgsProvider
  531. * @param string $type
  532. * @param string $id
  533. */
  534. public function testDeleteReferencesOfActorInvalidInput($type, $id): void {
  535. $this->expectException(\InvalidArgumentException::class);
  536. $manager = $this->getManager();
  537. $manager->deleteReferencesOfActor($type, $id);
  538. }
  539. public function testDeleteReferencesOfActor(): void {
  540. $ids = [];
  541. $ids[] = $this->addDatabaseEntry(0, 0);
  542. $ids[] = $this->addDatabaseEntry(0, 0);
  543. $ids[] = $this->addDatabaseEntry(0, 0);
  544. $manager = $this->getManager();
  545. // just to make sure they are really set, with correct actor data
  546. $comment = $manager->get(strval($ids[1]));
  547. $this->assertSame($comment->getActorType(), 'users');
  548. $this->assertSame($comment->getActorId(), 'alice');
  549. $wasSuccessful = $manager->deleteReferencesOfActor('users', 'alice');
  550. $this->assertTrue($wasSuccessful);
  551. foreach ($ids as $id) {
  552. $comment = $manager->get(strval($id));
  553. $this->assertSame($comment->getActorType(), ICommentsManager::DELETED_USER);
  554. $this->assertSame($comment->getActorId(), ICommentsManager::DELETED_USER);
  555. }
  556. // actor info is gone from DB, but when database interaction is alright,
  557. // we still expect to get true back
  558. $wasSuccessful = $manager->deleteReferencesOfActor('users', 'alice');
  559. $this->assertTrue($wasSuccessful);
  560. }
  561. public function testDeleteReferencesOfActorWithUserManagement(): void {
  562. $user = \OC::$server->getUserManager()->createUser('xenia', 'NotAnEasyPassword123456+');
  563. $this->assertTrue($user instanceof IUser);
  564. $manager = \OC::$server->get(ICommentsManager::class);
  565. $comment = $manager->create('users', $user->getUID(), 'files', 'file64');
  566. $comment
  567. ->setMessage('Most important comment I ever left on the Internet.')
  568. ->setVerb('comment');
  569. $status = $manager->save($comment);
  570. $this->assertTrue($status);
  571. $commentID = $comment->getId();
  572. $user->delete();
  573. $comment = $manager->get($commentID);
  574. $this->assertSame($comment->getActorType(), ICommentsManager::DELETED_USER);
  575. $this->assertSame($comment->getActorId(), ICommentsManager::DELETED_USER);
  576. }
  577. public function invalidObjectArgsProvider() {
  578. return
  579. [
  580. ['', ''],
  581. [1, 'file64'],
  582. ['files', 1],
  583. ];
  584. }
  585. /**
  586. * @dataProvider invalidObjectArgsProvider
  587. * @param string $type
  588. * @param string $id
  589. */
  590. public function testDeleteCommentsAtObjectInvalidInput($type, $id): void {
  591. $this->expectException(\InvalidArgumentException::class);
  592. $manager = $this->getManager();
  593. $manager->deleteCommentsAtObject($type, $id);
  594. }
  595. public function testDeleteCommentsAtObject(): void {
  596. $ids = [];
  597. $ids[] = $this->addDatabaseEntry(0, 0);
  598. $ids[] = $this->addDatabaseEntry(0, 0);
  599. $ids[] = $this->addDatabaseEntry(0, 0);
  600. $manager = $this->getManager();
  601. // just to make sure they are really set, with correct actor data
  602. $comment = $manager->get(strval($ids[1]));
  603. $this->assertSame($comment->getObjectType(), 'files');
  604. $this->assertSame($comment->getObjectId(), 'file64');
  605. $wasSuccessful = $manager->deleteCommentsAtObject('files', 'file64');
  606. $this->assertTrue($wasSuccessful);
  607. $verified = 0;
  608. foreach ($ids as $id) {
  609. try {
  610. $manager->get(strval($id));
  611. } catch (NotFoundException $e) {
  612. $verified++;
  613. }
  614. }
  615. $this->assertSame($verified, 3);
  616. // actor info is gone from DB, but when database interaction is alright,
  617. // we still expect to get true back
  618. $wasSuccessful = $manager->deleteCommentsAtObject('files', 'file64');
  619. $this->assertTrue($wasSuccessful);
  620. }
  621. public function testDeleteCommentsExpiredAtObjectTypeAndId(): void {
  622. $ids = [];
  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. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('-2 hours'));
  627. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('-2 hours'));
  628. $ids[] = $this->addDatabaseEntry(0, 0, null, null, null, new \DateTime('-2 hours'));
  629. $manager = new Manager(
  630. $this->connection,
  631. $this->createMock(LoggerInterface::class),
  632. $this->createMock(IConfig::class),
  633. Server::get(ITimeFactory::class),
  634. new EmojiHelper($this->connection),
  635. $this->createMock(IInitialStateService::class),
  636. $this->rootFolder,
  637. $this->createMock(IEventDispatcher::class)
  638. );
  639. // just to make sure they are really set, with correct actor data
  640. $comment = $manager->get((string)$ids[1]);
  641. $this->assertSame($comment->getObjectType(), 'files');
  642. $this->assertSame($comment->getObjectId(), 'file64');
  643. $deleted = $manager->deleteCommentsExpiredAtObject('files', 'file64');
  644. $this->assertTrue($deleted);
  645. $deleted = 0;
  646. $exists = 0;
  647. foreach ($ids as $id) {
  648. try {
  649. $manager->get((string)$id);
  650. $exists++;
  651. } catch (NotFoundException $e) {
  652. $deleted++;
  653. }
  654. }
  655. $this->assertSame($exists, 3);
  656. $this->assertSame($deleted, 3);
  657. // actor info is gone from DB, but when database interaction is alright,
  658. // we still expect to get true back
  659. $deleted = $manager->deleteCommentsExpiredAtObject('files', 'file64');
  660. $this->assertFalse($deleted);
  661. }
  662. public function testDeleteCommentsExpiredAtObjectType(): void {
  663. $ids = [];
  664. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file1', new \DateTime('-2 hours'));
  665. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file2', new \DateTime('-2 hours'));
  666. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime('-2 hours'));
  667. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime());
  668. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime());
  669. $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime());
  670. $manager = new Manager(
  671. $this->connection,
  672. $this->createMock(LoggerInterface::class),
  673. $this->createMock(IConfig::class),
  674. Server::get(ITimeFactory::class),
  675. new EmojiHelper($this->connection),
  676. $this->createMock(IInitialStateService::class),
  677. $this->rootFolder,
  678. $this->createMock(IEventDispatcher::class)
  679. );
  680. $deleted = $manager->deleteCommentsExpiredAtObject('files');
  681. $this->assertTrue($deleted);
  682. $deleted = 0;
  683. $exists = 0;
  684. foreach ($ids as $id) {
  685. try {
  686. $manager->get((string)$id);
  687. $exists++;
  688. } catch (NotFoundException $e) {
  689. $deleted++;
  690. }
  691. }
  692. $this->assertSame($exists, 0);
  693. $this->assertSame($deleted, 6);
  694. // actor info is gone from DB, but when database interaction is alright,
  695. // we still expect to get true back
  696. $deleted = $manager->deleteCommentsExpiredAtObject('files');
  697. $this->assertFalse($deleted);
  698. }
  699. public function testSetMarkRead(): void {
  700. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  701. $user = $this->createMock(IUser::class);
  702. $user->expects($this->any())
  703. ->method('getUID')
  704. ->willReturn('alice');
  705. $dateTimeSet = new \DateTime();
  706. $manager = $this->getManager();
  707. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  708. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  709. $this->assertEquals($dateTimeGet->getTimestamp(), $dateTimeSet->getTimestamp());
  710. }
  711. public function testSetMarkReadUpdate(): void {
  712. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  713. $user = $this->createMock(IUser::class);
  714. $user->expects($this->any())
  715. ->method('getUID')
  716. ->willReturn('alice');
  717. $dateTimeSet = new \DateTime('yesterday');
  718. $manager = $this->getManager();
  719. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  720. $dateTimeSet = new \DateTime('today');
  721. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  722. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  723. $this->assertEquals($dateTimeGet, $dateTimeSet);
  724. }
  725. public function testReadMarkDeleteUser(): void {
  726. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  727. $user = $this->createMock(IUser::class);
  728. $user->expects($this->any())
  729. ->method('getUID')
  730. ->willReturn('alice');
  731. $dateTimeSet = new \DateTime();
  732. $manager = $this->getManager();
  733. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  734. $manager->deleteReadMarksFromUser($user);
  735. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  736. $this->assertNull($dateTimeGet);
  737. }
  738. public function testReadMarkDeleteObject(): void {
  739. /** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
  740. $user = $this->createMock(IUser::class);
  741. $user->expects($this->any())
  742. ->method('getUID')
  743. ->willReturn('alice');
  744. $dateTimeSet = new \DateTime();
  745. $manager = $this->getManager();
  746. $manager->setReadMark('robot', '36', $dateTimeSet, $user);
  747. $manager->deleteReadMarksOnObject('robot', '36');
  748. $dateTimeGet = $manager->getReadMark('robot', '36', $user);
  749. $this->assertNull($dateTimeGet);
  750. }
  751. public function testSendEvent(): void {
  752. $handler1 = $this->getMockBuilder(ICommentsEventHandler::class)->getMock();
  753. $handler1->expects($this->exactly(4))
  754. ->method('handle');
  755. $handler2 = $this->getMockBuilder(ICommentsEventHandler::class)->getMock();
  756. $handler1->expects($this->exactly(4))
  757. ->method('handle');
  758. $manager = $this->getManager();
  759. $manager->registerEventHandler(function () use ($handler1) {
  760. return $handler1;
  761. });
  762. $manager->registerEventHandler(function () use ($handler2) {
  763. return $handler2;
  764. });
  765. $comment = new Comment();
  766. $comment
  767. ->setActor('users', 'alice')
  768. ->setObject('files', 'file64')
  769. ->setMessage('very beautiful, I am impressed!')
  770. ->setVerb('comment');
  771. // Add event
  772. $manager->save($comment);
  773. // Update event
  774. $comment->setMessage('Different topic');
  775. $manager->save($comment);
  776. // Delete event
  777. $manager->delete($comment->getId());
  778. }
  779. public function testResolveDisplayName(): void {
  780. $manager = $this->getManager();
  781. $planetClosure = function ($name) {
  782. return ucfirst($name);
  783. };
  784. $galaxyClosure = function ($name) {
  785. return strtoupper($name);
  786. };
  787. $manager->registerDisplayNameResolver('planet', $planetClosure);
  788. $manager->registerDisplayNameResolver('galaxy', $galaxyClosure);
  789. $this->assertSame('Neptune', $manager->resolveDisplayName('planet', 'neptune'));
  790. $this->assertSame('SOMBRERO', $manager->resolveDisplayName('galaxy', 'sombrero'));
  791. }
  792. public function testRegisterResolverDuplicate(): void {
  793. $this->expectException(\OutOfBoundsException::class);
  794. $manager = $this->getManager();
  795. $planetClosure = function ($name) {
  796. return ucfirst($name);
  797. };
  798. $manager->registerDisplayNameResolver('planet', $planetClosure);
  799. $manager->registerDisplayNameResolver('planet', $planetClosure);
  800. }
  801. public function testRegisterResolverInvalidType(): void {
  802. $this->expectException(\InvalidArgumentException::class);
  803. $manager = $this->getManager();
  804. $planetClosure = function ($name) {
  805. return ucfirst($name);
  806. };
  807. $manager->registerDisplayNameResolver(1337, $planetClosure);
  808. }
  809. public function testResolveDisplayNameUnregisteredType(): void {
  810. $this->expectException(\OutOfBoundsException::class);
  811. $manager = $this->getManager();
  812. $planetClosure = function ($name) {
  813. return ucfirst($name);
  814. };
  815. $manager->registerDisplayNameResolver('planet', $planetClosure);
  816. $manager->resolveDisplayName('galaxy', 'sombrero');
  817. }
  818. public function testResolveDisplayNameDirtyResolver(): void {
  819. $manager = $this->getManager();
  820. $planetClosure = function () {
  821. return null;
  822. };
  823. $manager->registerDisplayNameResolver('planet', $planetClosure);
  824. $this->assertTrue(is_string($manager->resolveDisplayName('planet', 'neptune')));
  825. }
  826. private function skipIfNotSupport4ByteUTF() {
  827. if (!$this->getManager()->supportReactions()) {
  828. $this->markTestSkipped('MySQL doesn\'t support 4 byte UTF-8');
  829. }
  830. }
  831. /**
  832. * @dataProvider providerTestReactionAddAndDelete
  833. *
  834. * @param IComment[] $comments
  835. * @param array $reactionsExpected
  836. * @return void
  837. */
  838. public function testReactionAddAndDelete(array $comments, array $reactionsExpected): void {
  839. $this->skipIfNotSupport4ByteUTF();
  840. $manager = $this->getManager();
  841. $processedComments = $this->proccessComments($comments);
  842. $comment = end($processedComments);
  843. if ($comment->getParentId()) {
  844. $parent = $manager->get($comment->getParentId());
  845. $this->assertEqualsCanonicalizing($reactionsExpected, $parent->getReactions());
  846. }
  847. }
  848. public function providerTestReactionAddAndDelete(): array {
  849. return[
  850. [
  851. [
  852. ['message', 'alice', 'comment', null],
  853. ], [],
  854. ],
  855. [
  856. [
  857. ['message', 'alice', 'comment', null],
  858. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  859. ], ['๐Ÿ‘' => 1],
  860. ],
  861. [
  862. [
  863. ['message', 'alice', 'comment', null],
  864. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  865. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  866. ], ['๐Ÿ‘' => 1],
  867. ],
  868. [
  869. [
  870. ['message', 'alice', 'comment', null],
  871. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  872. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  873. ], ['๐Ÿ‘' => 2],
  874. ],
  875. [
  876. [
  877. ['message', 'alice', 'comment', null],
  878. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  879. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  880. ['๐Ÿ‘', 'frank', 'reaction_deleted', 'message#alice'],
  881. ], ['๐Ÿ‘' => 1],
  882. ],
  883. [
  884. [
  885. ['message', 'alice', 'comment', null],
  886. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  887. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  888. ['๐Ÿ‘', 'alice', 'reaction_deleted', 'message#alice'],
  889. ['๐Ÿ‘', 'frank', 'reaction_deleted', 'message#alice'],
  890. ], [],
  891. ],
  892. ];
  893. }
  894. public function testResolveDisplayNameInvalidType(): void {
  895. $this->expectException(\InvalidArgumentException::class);
  896. $manager = $this->getManager();
  897. $planetClosure = function () {
  898. return null;
  899. };
  900. $manager->registerDisplayNameResolver('planet', $planetClosure);
  901. $this->assertTrue(is_string($manager->resolveDisplayName(1337, 'neptune')));
  902. }
  903. /**
  904. * @param array $data
  905. * @return IComment[]
  906. */
  907. private function proccessComments(array $data): array {
  908. /** @var IComment[] */
  909. $comments = [];
  910. foreach ($data as $comment) {
  911. [$message, $actorId, $verb, $parentText] = $comment;
  912. $parentId = null;
  913. if ($parentText) {
  914. $parentId = (string)$comments[$parentText]->getId();
  915. }
  916. $id = '';
  917. if ($verb === 'reaction_deleted') {
  918. $id = $comments[$message . '#' . $actorId]->getId();
  919. }
  920. $comment = $this->testSave($message, $actorId, $verb, $parentId, $id);
  921. $comments[$comment->getMessage() . '#' . $comment->getActorId()] = $comment;
  922. }
  923. return $comments;
  924. }
  925. /**
  926. * @dataProvider providerTestRetrieveAllReactions
  927. */
  928. public function testRetrieveAllReactions(array $comments, array $expected): void {
  929. $this->skipIfNotSupport4ByteUTF();
  930. $manager = $this->getManager();
  931. $processedComments = $this->proccessComments($comments);
  932. $comment = reset($processedComments);
  933. $all = $manager->retrieveAllReactions($comment->getId());
  934. $actual = array_map(function ($row) {
  935. return [
  936. 'message' => $row->getMessage(),
  937. 'actorId' => $row->getActorId(),
  938. ];
  939. }, $all);
  940. $this->assertEqualsCanonicalizing($expected, $actual);
  941. }
  942. public function providerTestRetrieveAllReactions(): array {
  943. return [
  944. [
  945. [
  946. ['message', 'alice', 'comment', null],
  947. ],
  948. [],
  949. ],
  950. [
  951. [
  952. ['message', 'alice', 'comment', null],
  953. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  954. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  955. ],
  956. [
  957. ['๐Ÿ‘', 'alice'],
  958. ['๐Ÿ‘', 'frank'],
  959. ],
  960. ],
  961. [
  962. [
  963. ['message', 'alice', 'comment', null],
  964. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  965. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  966. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  967. ],
  968. [
  969. ['๐Ÿ‘', 'alice'],
  970. ['๐Ÿ‘', 'frank'],
  971. ],
  972. ],
  973. [# 600 reactions to cover chunk size when retrieve comments of reactions.
  974. [
  975. ['message', 'alice', 'comment', null],
  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. ['๐Ÿ’ƒ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1572. ['๐Ÿ•บ๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1573. ['๐Ÿ•ด๐Ÿฝ', 'alice', 'reaction', 'message#alice'],
  1574. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1575. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฝ', 'alice', 'reaction', 'message#alice'],
  1576. ],
  1577. [
  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. ['๐Ÿ’ƒ๐Ÿฝ', 'alice'],
  2174. ['๐Ÿ•บ๐Ÿฝ', 'alice'],
  2175. ['๐Ÿ•ด๐Ÿฝ', 'alice'],
  2176. ['๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿฆฝ', 'alice'],
  2177. ['๐Ÿง‘๐Ÿฝโ€๐Ÿฆฝ', 'alice'],
  2178. ],
  2179. ],
  2180. ];
  2181. }
  2182. /**
  2183. * @dataProvider providerTestRetrieveAllReactionsWithSpecificReaction
  2184. */
  2185. public function testRetrieveAllReactionsWithSpecificReaction(array $comments, string $reaction, array $expected): void {
  2186. $this->skipIfNotSupport4ByteUTF();
  2187. $manager = $this->getManager();
  2188. $processedComments = $this->proccessComments($comments);
  2189. $comment = reset($processedComments);
  2190. $all = $manager->retrieveAllReactionsWithSpecificReaction($comment->getId(), $reaction);
  2191. $actual = array_map(function ($row) {
  2192. return [
  2193. 'message' => $row->getMessage(),
  2194. 'actorId' => $row->getActorId(),
  2195. ];
  2196. }, $all);
  2197. $this->assertEqualsCanonicalizing($expected, $actual);
  2198. }
  2199. public function providerTestRetrieveAllReactionsWithSpecificReaction(): array {
  2200. return [
  2201. [
  2202. [
  2203. ['message', 'alice', 'comment', null],
  2204. ],
  2205. '๐Ÿ‘Ž',
  2206. [],
  2207. ],
  2208. [
  2209. [
  2210. ['message', 'alice', 'comment', null],
  2211. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  2212. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  2213. ],
  2214. '๐Ÿ‘',
  2215. [
  2216. ['๐Ÿ‘', 'alice'],
  2217. ['๐Ÿ‘', 'frank'],
  2218. ],
  2219. ],
  2220. [
  2221. [
  2222. ['message', 'alice', 'comment', null],
  2223. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  2224. ['๐Ÿ‘Ž', 'alice', 'reaction', 'message#alice'],
  2225. ['๐Ÿ‘', 'frank', 'reaction', 'message#alice'],
  2226. ],
  2227. '๐Ÿ‘Ž',
  2228. [
  2229. ['๐Ÿ‘Ž', 'alice'],
  2230. ],
  2231. ],
  2232. ];
  2233. }
  2234. /**
  2235. * @dataProvider providerTestGetReactionComment
  2236. */
  2237. public function testGetReactionComment(array $comments, array $expected, bool $notFound): void {
  2238. $this->skipIfNotSupport4ByteUTF();
  2239. $manager = $this->getManager();
  2240. $processedComments = $this->proccessComments($comments);
  2241. $keys = ['message', 'actorId', 'verb', 'parent'];
  2242. $expected = array_combine($keys, $expected);
  2243. if ($notFound) {
  2244. $this->expectException(\OCP\Comments\NotFoundException::class);
  2245. }
  2246. $comment = $processedComments[$expected['message'] . '#' . $expected['actorId']];
  2247. $actual = $manager->getReactionComment($comment->getParentId(), $comment->getActorType(), $comment->getActorId(), $comment->getMessage());
  2248. if (!$notFound) {
  2249. $this->assertEquals($expected['message'], $actual->getMessage());
  2250. $this->assertEquals($expected['actorId'], $actual->getActorId());
  2251. $this->assertEquals($expected['verb'], $actual->getVerb());
  2252. $this->assertEquals($processedComments[$expected['parent']]->getId(), $actual->getParentId());
  2253. }
  2254. }
  2255. public function providerTestGetReactionComment(): array {
  2256. return [
  2257. [
  2258. [
  2259. ['message', 'Matthew', 'comment', null],
  2260. ['๐Ÿ‘', 'Matthew', 'reaction', 'message#Matthew'],
  2261. ['๐Ÿ‘', 'Mark', 'reaction', 'message#Matthew'],
  2262. ['๐Ÿ‘', 'Luke', 'reaction', 'message#Matthew'],
  2263. ['๐Ÿ‘', 'John', 'reaction', 'message#Matthew'],
  2264. ],
  2265. ['๐Ÿ‘', 'Matthew', 'reaction', 'message#Matthew'],
  2266. false,
  2267. ],
  2268. [
  2269. [
  2270. ['message', 'Matthew', 'comment', null],
  2271. ['๐Ÿ‘', 'Matthew', 'reaction', 'message#Matthew'],
  2272. ['๐Ÿ‘', 'Mark', 'reaction', 'message#Matthew'],
  2273. ['๐Ÿ‘', 'Luke', 'reaction', 'message#Matthew'],
  2274. ['๐Ÿ‘', 'John', 'reaction', 'message#Matthew'],
  2275. ],
  2276. ['๐Ÿ‘', 'Mark', 'reaction', 'message#Matthew'],
  2277. false,
  2278. ],
  2279. [
  2280. [
  2281. ['message', 'Matthew', 'comment', null],
  2282. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2283. ],
  2284. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2285. false,
  2286. ],
  2287. [
  2288. [
  2289. ['message', 'Matthew', 'comment', null],
  2290. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2291. ['๐Ÿ‘Ž', 'Matthew', 'reaction_deleted', 'message#Matthew'],
  2292. ],
  2293. ['๐Ÿ‘Ž', 'Matthew', 'reaction', 'message#Matthew'],
  2294. true,
  2295. ],
  2296. ];
  2297. }
  2298. /**
  2299. * @dataProvider providerTestReactionMessageSize
  2300. */
  2301. public function testReactionMessageSize($reactionString, $valid): void {
  2302. $this->skipIfNotSupport4ByteUTF();
  2303. if (!$valid) {
  2304. $this->expectException(\UnexpectedValueException::class);
  2305. }
  2306. $manager = $this->getManager();
  2307. $comment = new Comment();
  2308. $comment->setMessage($reactionString)
  2309. ->setVerb('reaction')
  2310. ->setActor('users', 'alice')
  2311. ->setObject('files', 'file64');
  2312. $status = $manager->save($comment);
  2313. $this->assertTrue($status);
  2314. }
  2315. public function providerTestReactionMessageSize(): array {
  2316. return [
  2317. ['a', false],
  2318. ['1', false],
  2319. ['๐Ÿ‘', true],
  2320. ['๐Ÿ‘๐Ÿ‘', false],
  2321. ['๐Ÿ‘๐Ÿฝ', true],
  2322. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป', true],
  2323. ['๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป๐Ÿ‘', false],
  2324. ];
  2325. }
  2326. /**
  2327. * @dataProvider providerTestReactionsSummarizeOrdered
  2328. */
  2329. public function testReactionsSummarizeOrdered(array $comments, array $expected, bool $isFullMatch): void {
  2330. $this->skipIfNotSupport4ByteUTF();
  2331. $manager = $this->getManager();
  2332. $processedComments = $this->proccessComments($comments);
  2333. $comment = end($processedComments);
  2334. $actual = $manager->get($comment->getParentId());
  2335. if ($isFullMatch) {
  2336. $this->assertSame($expected, $actual->getReactions());
  2337. } else {
  2338. $subResult = array_slice($actual->getReactions(), 0, count($expected));
  2339. $this->assertSame($expected, $subResult);
  2340. }
  2341. }
  2342. public function providerTestReactionsSummarizeOrdered(): array {
  2343. return [
  2344. [
  2345. [
  2346. ['message', 'alice', 'comment', null],
  2347. ['๐Ÿ‘', 'alice', 'reaction', 'message#alice'],
  2348. ],
  2349. ['๐Ÿ‘' => 1],
  2350. true,
  2351. ],
  2352. [
  2353. [
  2354. ['message', 'alice', 'comment', null],
  2355. ['๐Ÿ‘Ž', 'John', '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. ['๐Ÿ•ธ', 'Luke', 'reaction', 'message#alice'],
  2371. ['๐Ÿฐ', 'Luke', 'reaction', 'message#alice'],
  2372. ['โš™๏ธ', 'Luke', 'reaction', 'message#alice'],
  2373. ['๐Ÿšจ', 'Luke', 'reaction', 'message#alice'],
  2374. ['๐Ÿ‘ฅ', 'Luke', 'reaction', 'message#alice'],
  2375. ['๐Ÿ‘', 'Paul', 'reaction', 'message#alice'],
  2376. ['๐Ÿ‘', 'Peter', 'reaction', 'message#alice'],
  2377. ['๐Ÿ’œ', 'Matthew', 'reaction', 'message#alice'],
  2378. ['๐Ÿ’œ', 'Mark', 'reaction', 'message#alice'],
  2379. ['๐Ÿ’œ', 'Luke', 'reaction', 'message#alice'],
  2380. ],
  2381. [
  2382. '๐Ÿ’œ' => 3,
  2383. '๐Ÿ‘' => 2,
  2384. ],
  2385. false,
  2386. ],
  2387. ];
  2388. }
  2389. }