ManagerTest.php 95 KB

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