ManagerTest.php 94 KB

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