ManagerTest.php 94 KB

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