]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.fixture.php
Move Api\Help
[friendica.git] / tests / datasets / api.fixture.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2021, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  */
21
22 use Friendica\Core\Protocol;
23 use Friendica\Model\Contact;
24 use Friendica\Model\Item;
25 use Friendica\Model\Notification;
26
27 return [
28         // Empty these tables
29         'profile_field',
30         'permissionset',
31         'cache',
32         'conversation',
33         'pconfig',
34         'photo',
35         'workerqueue',
36         'mail',
37         'post-delivery-data',
38         // Base test config to avoid notice messages
39         'config'  => [
40                 [
41                         'cat' => 'system',
42                         'k'   => 'url',
43                         'v'   => 'http://localhost',
44                 ],
45                 [
46                         'cat' => 'config',
47                         'k'   => 'hostname',
48                         'v'   => 'localhost',
49                 ],
50                 [
51                         'cat' => 'system',
52                         'k'   => 'worker_dont_fork',
53                         'v'   => '1',
54                 ],
55                 [
56                         'cat' => 'system',
57                         'k'   => 'curl_timeout',
58                         'v'   => '1',
59                 ],
60                 [
61                         'cat' => 'system',
62                         'k'   => 'xrd_timeout',
63                         'v'   => '1',
64                 ],
65         ],
66         'user'    => [
67                 [
68                         'uid'      => 42,
69                         'username' => 'Test user',
70                         'nickname' => 'selfcontact',
71                         'verified' => 1,
72                         'password' => '$2y$10$DLRNTRmJgKe1cSrFJ5Jb0edCqvXlA9sh/RHdSnfxjbR.04yZRm4Qm',
73                         'theme'    => 'frio',
74                 ],
75         ],
76         'item-uri'    => [
77                 [
78                         'id'   => 1,
79                         'uri'  => '1',
80                         'guid' => '1',
81                 ],
82                 [
83                         'id'   => 2,
84                         'uri'  => '2',
85                         'guid' => '2',
86                 ],
87                 [
88                         'id'   => 3,
89                         'uri'  => '3',
90                         'guid' => '3',
91                 ],
92                 [
93                         'id'   => 4,
94                         'uri'  => '4',
95                         'guid' => '4',
96                 ],
97                 [
98                         'id'   => 5,
99                         'uri'  => '5',
100                         'guid' => '5',
101                 ],
102                 [
103                         'id'   => 6,
104                         'uri'  => '6',
105                         'guid' => '6',
106                 ],
107
108                 [
109                         'id'   => 42,
110                         'uri'  => 'http://localhost/profile/selfcontact',
111                         'guid' => '42',
112                 ],
113                 [
114                         'id'   => 43,
115                         'uri'  => 'http://localhost/profile/othercontact',
116                         'guid' => '43',
117                 ],
118                 [
119                         'id'   => 44,
120                         'uri'  => 'http://localhost/profile/friendcontact',
121                         'guid' => '44',
122                 ],
123                 [
124                         'id'   => 46,
125                         'uri'  => 'http://localhost/profile/mutualcontact',
126                         'guid' => '46',
127                 ],
128         ],
129         'contact' => [
130                 [
131                         'id'      => 42,
132                         'uid'     => 42,
133                         'uri-id'  => 42,
134                         'name'    => 'Self contact',
135                         'nick'    => 'selfcontact',
136                         'self'    => 1,
137                         'nurl'    => 'http://localhost/profile/selfcontact',
138                         'url'     => 'http://localhost/profile/selfcontact',
139                         'about'   => 'User used in tests',
140                         'pending' => 0,
141                         'blocked' => 0,
142                         'rel'     => Contact::FOLLOWER,
143                         'network' => Protocol::DFRN,
144                         'location' => 'DFRN',
145                 ],
146                 // Having the same name and nick allows us to test
147                 // the fallback to api_get_nick() in api_get_user()
148                 [
149                         'id'      => 43,
150                         'uid'     => 0,
151                         'uri-id'  => 43,
152                         'name'    => 'othercontact',
153                         'nick'    => 'othercontact',
154                         'self'    => 0,
155                         'nurl'    => 'http://localhost/profile/othercontact',
156                         'url'     => 'http://localhost/profile/othercontact',
157                         'pending' => 0,
158                         'blocked' => 0,
159                         'rel'     => Contact::NOTHING,
160                         'network' => Protocol::DFRN, 
161                         'location' => 'DFRN',
162                 ],
163                 [
164                         'id'      => 44,
165                         'uid'     => 42,
166                         'uri-id'  => 44,
167                         'name'    => 'Friend contact',
168                         'nick'    => 'friendcontact',
169                         'self'    => 0,
170                         'nurl'    => 'http://localhost/profile/friendcontact',
171                         'url'     => 'http://localhost/profile/friendcontact',
172                         'pending' => 0,
173                         'blocked' => 0,
174                         'rel'     => Contact::SHARING,
175                         'network' => Protocol::DFRN,
176                         'location' => 'DFRN',
177                 ],
178                 [
179                         'id'      => 45,
180                         'uid'     => 0,
181                         'uri-id'  => 44,
182                         'name'    => 'Friend contact',
183                         'nick'    => 'friendcontact',
184                         'self'    => 0,
185                         'nurl'    => 'http://localhost/profile/friendcontact',
186                         'url'     => 'http://localhost/profile/friendcontact',
187                         'pending' => 0,
188                         'blocked' => 0,
189                         'rel'     => Contact::SHARING,
190                         'network' => Protocol::DFRN,
191                         'location' => 'DFRN',
192                 ],
193                 [
194                         'id'      => 46,
195                         'uid'     => 42,
196                         'uri-id'  => 46,
197                         'name'    => 'Mutual contact',
198                         'nick'    => 'mutualcontact',
199                         'self'    => 0,
200                         'nurl'    => 'http://localhost/profile/mutualcontact',
201                         'url'     => 'http://localhost/profile/mutualcontact',
202                         'pending' => 0,
203                         'blocked' => 0,
204                         'rel'     => Contact::FRIEND,
205                         'network' => Protocol::DFRN,
206                         'location' => 'DFRN',
207                 ],
208                 [
209                         'id'      => 47,
210                         'uid'     => 0,
211                         'uri-id'  => 46,
212                         'name'    => 'Mutual contact',
213                         'nick'    => 'mutualcontact',
214                         'self'    => 0,
215                         'nurl'    => 'http://localhost/profile/mutualcontact',
216                         'url'     => 'http://localhost/profile/mutualcontact',
217                         'pending' => 0,
218                         'blocked' => 0,
219                         'rel'     => Contact::SHARING,
220                         'network' => Protocol::DFRN,
221                         'location' => 'DFRN',
222                 ],
223         ],
224         'verb'    => [
225                 [
226                         'id'   => 0,
227                         'name' => '',
228                 ],
229                 [
230                         'id'   => 1,
231                         'name' => 'http://activitystrea.ms/schema/1.0/like',
232                 ],
233                 [
234                         'id'   => 2,
235                         'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike',
236                 ],
237                 [
238                         'id'   => 3,
239                         'name' => 'http://purl.org/zot/activity/attendyes',
240                 ],
241                 [
242                         'id'   => 4,
243                         'name' => 'http://purl.org/zot/activity/attendno',
244                 ],
245                 [
246                         'id'   => 5,
247                         'name' => 'http://purl.org/zot/activity/attendmaybe',
248                 ],
249                 [
250                         'id'   => 6,
251                         'name' => 'http://activitystrea.ms/schema/1.0/follow',
252                 ],
253                 [
254                         'id'   => 7,
255                         'name' => 'https://www.w3.org/ns/activitystreams#Announce',
256                 ],
257                 [
258                         'id'   => 8,
259                         'name' => 'http://activitystrea.ms/schema/1.0/post',
260                 ],
261         ],
262         'post-content' => [
263                 [
264                         'uri-id' => 1,
265                         'body'   => 'Parent status',
266                         'plink'  => 'http://localhost/display/1',
267                 ],
268                 [
269                         'uri-id' => 2,
270                         'body'   => 'Reply',
271                         'plink'  => 'http://localhost/display/2',
272                 ],
273                 [
274                         'uri-id' => 3,
275                         'body'   => 'Other user status',
276                         'plink'  => 'http://localhost/display/3',
277                 ],
278                 [
279                         'uri-id' => 4,
280                         'body'   => 'Friend user reply',
281                         'plink'  => 'http://localhost/display/4',
282                 ],
283                 [
284                         'uri-id' => 5,
285                         'body'   => '[share]Shared status[/share]',
286                         'plink'  => 'http://localhost/display/5',
287                 ],
288                 [
289                         'uri-id' => 6,
290                         'body'   => 'Friend user status',
291                         'plink'  => 'http://localhost/display/6',
292                 ],
293         ],
294         'post'    => [
295                 [
296                         'uri-id'        => 1,
297                         'parent-uri-id' => 1,
298                         'thr-parent-id' => 1,
299                         'gravity'       => GRAVITY_PARENT,
300                         'network'       => Protocol::DFRN,
301                         'owner-id'      => 42,
302                         'author-id'     => 42,
303                         'causer-id'     => 42,
304                         'vid'           => 8,
305                         'private'       => Item::PUBLIC,
306                         'visible'       => 1,
307                         'deleted'       => 0,
308                 ],
309                 [
310                         'uri-id'        => 2,
311                         'parent-uri-id' => 1,
312                         'thr-parent-id' => 1,
313                         'gravity'       => GRAVITY_COMMENT,
314                         'network'       => Protocol::DFRN,
315                         'owner-id'      => 42,
316                         'author-id'     => 42,
317                         'causer-id'     => 42,
318                         'vid'           => 8,
319                         'private'       => Item::PUBLIC,
320                         'visible'       => 1,
321                         'deleted'       => 0,
322                 ],
323                 [
324                         'uri-id'        => 3,
325                         'parent-uri-id' => 3,
326                         'thr-parent-id' => 3,
327                         'gravity'       => GRAVITY_PARENT,
328                         'network'       => Protocol::DFRN,
329                         'owner-id'      => 42,
330                         'author-id'     => 43,
331                         'causer-id'     => 43,
332                         'vid'           => 8,
333                         'private'       => Item::PUBLIC,
334                         'visible'       => 1,
335                         'deleted'       => 0,
336                 ],
337                 [
338                         'uri-id'        => 4,
339                         'parent-uri-id' => 1,
340                         'thr-parent-id' => 1,
341                         'gravity'       => GRAVITY_COMMENT,
342                         'network'       => Protocol::DFRN,
343                         'owner-id'      => 42,
344                         'author-id'     => 44,
345                         'causer-id'     => 44,
346                         'vid'           => 8,
347                         'private'       => Item::PUBLIC,
348                         'visible'       => 1,
349                         'deleted'       => 0,
350                 ],
351                 [
352                         'uri-id'        => 5,
353                         'parent-uri-id' => 1,
354                         'thr-parent-id' => 1,
355                         'gravity'       => GRAVITY_COMMENT,
356                         'network'       => Protocol::DFRN,
357                         'owner-id'      => 42,
358                         'author-id'     => 42,
359                         'causer-id'     => 42,
360                         'vid'           => 8,
361                         'private'       => Item::PUBLIC,
362                         'visible'       => 1,
363                         'deleted'       => 0,
364                 ],
365                 [
366                         'uri-id'        => 6,
367                         'parent-uri-id' => 6,
368                         'thr-parent-id' => 6,
369                         'gravity'       => GRAVITY_PARENT,
370                         'network'       => Protocol::DFRN,
371                         'owner-id'      => 42,
372                         'author-id'     => 44,
373                         'causer-id'     => 44,
374                         'vid'           => 8,
375                         'private'       => Item::PUBLIC,
376                         'visible'       => 1,
377                         'deleted'       => 0,
378                 ],
379         ],
380         'post-user' => [
381                 [
382                         'id'            => 1,
383                         'uri-id'        => 1,
384                         'visible'       => 1,
385                         'contact-id'    => 42,
386                         'author-id'     => 42,
387                         'owner-id'      => 42,
388                         'causer-id'     => 42,
389                         'uid'           => 42,
390                         'vid'           => 8,
391                         'unseen'        => 1,
392                         'parent-uri-id' => 1,
393                         'thr-parent-id' => 1,
394                         'private'       => Item::PUBLIC,
395                         'gravity'       => GRAVITY_PARENT,
396                         'network'       => Protocol::DFRN,
397                         'wall'          => 1,
398                         'origin'        => 1,
399                 ],
400                 [
401                         'id'            => 2,
402                         'uri-id'        => 2,
403                         'uid'           => 42,
404                         'contact-id'    => 42,
405                         'unseen'        => 0,
406                         'origin'        => 1,
407                         'parent-uri-id' => 1,
408                         'thr-parent-id' => 1,
409                         'gravity'       => GRAVITY_COMMENT,
410                         'network'       => Protocol::DFRN,
411                         'owner-id'      => 42,
412                         'author-id'     => 42,
413                         'causer-id'     => 42,
414                         'vid'           => 8,
415                         'private'       => Item::PUBLIC,
416                         'visible'       => 1,
417                         'deleted'       => 0,
418                         'wall'          => 1,
419                 ],
420                 [
421                         'id'            => 3,
422                         'uri-id'        => 3,
423                         'uid'           => 42,
424                         'contact-id'    => 43,
425                         'unseen'        => 0,
426                         'origin'        => 1,
427                         'parent-uri-id' => 3,
428                         'thr-parent-id' => 3,
429                         'gravity'       => GRAVITY_PARENT,
430                         'network'       => Protocol::DFRN,
431                         'owner-id'      => 42,
432                         'author-id'     => 43,
433                         'causer-id'     => 43,
434                         'vid'           => 8,
435                         'private'       => Item::PUBLIC,
436                         'visible'       => 1,
437                         'deleted'       => 0,
438                         'wall'          => 1,
439                 ],
440                 [
441                         'id'            => 4,
442                         'uri-id'        => 4,
443                         'uid'           => 42,
444                         'contact-id'    => 44,
445                         'unseen'        => 0,
446                         'origin'        => 1,
447                         'parent-uri-id' => 1,
448                         'thr-parent-id' => 1,
449                         'gravity'       => GRAVITY_COMMENT,
450                         'network'       => Protocol::DFRN,
451                         'owner-id'      => 42,
452                         'author-id'     => 44,
453                         'causer-id'     => 44,
454                         'vid'           => 8,
455                         'private'       => Item::PUBLIC,
456                         'visible'       => 1,
457                         'deleted'       => 0,
458                         'wall'          => 1,
459                 ],
460                 [
461                         'id'            => 5,
462                         'uri-id'        => 5,
463                         'uid'           => 42,
464                         'contact-id'    => 42,
465                         'unseen'        => 0,
466                         'origin'        => 1,
467                         'parent-uri-id' => 1,
468                         'thr-parent-id' => 1,
469                         'gravity'       => GRAVITY_COMMENT,
470                         'network'       => Protocol::DFRN,
471                         'owner-id'      => 42,
472                         'author-id'     => 42,
473                         'causer-id'     => 42,
474                         'vid'           => 8,
475                         'private'       => Item::PUBLIC,
476                         'visible'       => 1,
477                         'deleted'       => 0,
478                         'wall'          => 1,
479                 ],
480                 [
481                         'id'            => 6,
482                         'uri-id'        => 6,
483                         'uid'           => 42,
484                         'contact-id'    => 44,
485                         'unseen'        => 0,
486                         'origin'        => 1,
487                         'parent-uri-id' => 6,
488                         'thr-parent-id' => 6,
489                         'gravity'       => GRAVITY_PARENT,
490                         'network'       => Protocol::DFRN,
491                         'owner-id'      => 42,
492                         'author-id'     => 44,
493                         'causer-id'     => 44,
494                         'vid'           => 8,
495                         'private'       => Item::PUBLIC,
496                         'visible'       => 1,
497                         'deleted'       => 0,
498                         'wall'          => 1,
499                 ],
500                 [
501                         'id'            => 7,
502                         'uri-id'        => 1,
503                         'uid'           => 0,
504                         'contact-id'    => 42,
505                         'unseen'        => 1,
506                         'origin'        => 0,
507                         'parent-uri-id' => 1,
508                         'thr-parent-id' => 1,
509                         'gravity'       => GRAVITY_PARENT,
510                         'network'       => Protocol::DFRN,
511                         'owner-id'      => 42,
512                         'author-id'     => 42,
513                         'causer-id'     => 42,
514                         'vid'           => 8,
515                         'private'       => Item::PUBLIC,
516                         'visible'       => 1,
517                         'deleted'       => 0,
518                         'wall'          => 0,
519                 ],
520                 [
521                         'id'            => 8,
522                         'uri-id'        => 2,
523                         'uid'           => 0,
524                         'contact-id'    => 42,
525                         'unseen'        => 0,
526                         'origin'        => 0,
527                         'parent-uri-id' => 1,
528                         'thr-parent-id' => 1,
529                         'gravity'       => GRAVITY_COMMENT,
530                         'network'       => Protocol::DFRN,
531                         'owner-id'      => 42,
532                         'author-id'     => 42,
533                         'causer-id'     => 42,
534                         'vid'           => 8,
535                         'private'       => Item::PUBLIC,
536                         'visible'       => 1,
537                         'deleted'       => 0,
538                         'wall'          => 0,
539                 ],
540                 [
541                         'id'            => 9,
542                         'uri-id'        => 3,
543                         'uid'           => 0,
544                         'contact-id'    => 43,
545                         'unseen'        => 0,
546                         'origin'        => 0,
547                         'parent-uri-id' => 3,
548                         'thr-parent-id' => 3,
549                         'gravity'       => GRAVITY_PARENT,
550                         'network'       => Protocol::DFRN,
551                         'owner-id'      => 42,
552                         'author-id'     => 43,
553                         'causer-id'     => 43,
554                         'vid'           => 8,
555                         'private'       => Item::PUBLIC,
556                         'visible'       => 1,
557                         'deleted'       => 0,
558                         'wall'          => 0,
559                 ],
560                 [
561                         'id'            => 10,
562                         'uri-id'        => 4,
563                         'uid'           => 0,
564                         'contact-id'    => 44,
565                         'unseen'        => 0,
566                         'origin'        => 0,
567                         'parent-uri-id' => 1,
568                         'thr-parent-id' => 1,
569                         'gravity'       => GRAVITY_COMMENT,
570                         'network'       => Protocol::DFRN,
571                         'owner-id'      => 42,
572                         'author-id'     => 44,
573                         'causer-id'     => 44,
574                         'vid'           => 8,
575                         'private'       => Item::PUBLIC,
576                         'visible'       => 1,
577                         'deleted'       => 0,
578                         'wall'          => 0,
579                 ],
580                 [
581                         'id'            => 11,
582                         'uri-id'        => 5,
583                         'uid'           => 0,
584                         'contact-id'    => 42,
585                         'unseen'        => 0,
586                         'origin'        => 0,
587                         'parent-uri-id' => 1,
588                         'thr-parent-id' => 1,
589                         'gravity'       => GRAVITY_COMMENT,
590                         'network'       => Protocol::DFRN,
591                         'owner-id'      => 42,
592                         'author-id'     => 42,
593                         'causer-id'     => 42,
594                         'vid'           => 8,
595                         'private'       => Item::PUBLIC,
596                         'visible'       => 1,
597                         'deleted'       => 0,
598                         'wall'          => 0,
599                 ],
600                 [
601                         'id'            => 12,
602                         'uri-id'        => 6,
603                         'visible'       => 1,
604                         'contact-id'    => 44,
605                         'author-id'     => 44,
606                         'owner-id'      => 42,
607                         'causer-id'     => 44,
608                         'uid'           => 0,
609                         'vid'           => 8,
610                         'unseen'        => 0,
611                         'parent-uri-id' => 6,
612                         'thr-parent-id' => 6,
613                         'private'       => Item::PUBLIC,
614                         'gravity'       => GRAVITY_PARENT,
615                         'network'       => Protocol::DFRN,
616                         'origin'        => 0,
617                         'deleted'       => 0,
618                         'wall'          => 0,
619                 ],
620         ],
621         'post-thread'  => [
622                 [
623                         'uri-id'     => 1,
624                         'author-id'  => 42,
625                         'owner-id'   => 42,
626                         'causer-id'  => 42,
627                         'network'    => Protocol::DFRN,
628                 ],
629                 [
630                         'uri-id'     => 3,
631                         'author-id'  => 43,
632                         'owner-id'   => 43,
633                         'causer-id'  => 43,
634                         'network'    => Protocol::DFRN,
635                 ],
636                 [
637                         'uri-id'     => 6,
638                         'author-id'  => 44,
639                         'owner-id'   => 44,
640                         'causer-id'  => 44,
641                         'network'    => Protocol::DFRN,
642                 ],
643         ],
644         'post-thread-user'  => [
645                 [
646                         'uri-id'     => 1,
647                         'uid'        => 42,
648                         'wall'       => 1,
649                         'post-user-id' => 1,
650                         'author-id'  => 42,
651                         'owner-id'   => 42,
652                         'causer-id'  => 42,
653                         'contact-id' => 42,
654                         'network'    => Protocol::DFRN,
655                         'starred'    => 1,
656                         'origin'     => 1,
657                 ],
658                 [
659                         'uri-id'     => 3,
660                         'uid'        => 42,
661                         'wall'       => 1,
662                         'post-user-id' => 3,
663                         'author-id'  => 43,
664                         'owner-id'   => 43,
665                         'causer-id'  => 43,
666                         'contact-id' => 43,
667                         'network'    => Protocol::DFRN,
668                         'starred'    => 0,
669                         'origin'     => 1,
670                 ],
671                 [
672                         'uri-id'     => 6,
673                         'uid'        => 42,
674                         'wall'       => 1,
675                         'post-user-id' => 6,
676                         'author-id'  => 44,
677                         'owner-id'   => 44,
678                         'causer-id'  => 44,
679                         'contact-id' => 44,
680                         'network'    => Protocol::DFRN,
681                         'starred'    => 0,
682                         'origin'     => 1,
683                 ],
684                 [
685                         'uri-id'     => 1,
686                         'uid'        => 0,
687                         'wall'       => 0,
688                         'post-user-id' => 7,
689                         'author-id'  => 42,
690                         'owner-id'   => 42,
691                         'causer-id'  => 42,
692                         'contact-id' => 42,
693                         'network'    => Protocol::DFRN,
694                         'starred'    => 0,
695                         'origin'     => 0,
696                 ],
697                 [
698                         'uri-id'     => 3,
699                         'uid'        => 0,
700                         'wall'       => 0,
701                         'post-user-id' => 9,
702                         'author-id'  => 43,
703                         'owner-id'   => 43,
704                         'causer-id'  => 43,
705                         'contact-id' => 43,
706                         'network'    => Protocol::DFRN,
707                         'starred'    => 0,
708                         'origin'     => 0,
709                 ],
710                 [
711                         'uri-id'     => 6,
712                         'uid'        => 0,
713                         'wall'       => 0,
714                         'post-user-id' => 12,
715                         'author-id'  => 44,
716                         'owner-id'   => 44,
717                         'causer-id'  => 44,
718                         'contact-id' => 44,
719                         'network'    => Protocol::DFRN,
720                         'starred'    => 0,
721                         'origin'     => 0,
722                 ],
723         ],
724         'notify' => [
725                 [
726                         'id' => 1,
727                         'type' => 8,
728                         'name' => 'Reply to',
729                         'url' => 'http://localhost/display/1',
730                         'photo' => 'http://localhost/',
731                         'date' => '2020-01-01 12:12:02',
732                         'msg' => 'A test reply from an item',
733                         'uid' => 42,
734                         'link' => 'http://localhost/notification/1',
735                         'iid' => 4,
736                         'seen' => 0,
737                         'verb' => \Friendica\Protocol\Activity::POST,
738                         'otype' => Notification\ObjectType::ITEM,
739                         'name_cache' => 'Reply to',
740                         'msg_cache' => 'A test reply from an item',
741                 ],
742         ],
743         'profile' => [
744                 [
745                         'id' => 1,
746                         'uid' => 42,
747                 ],
748         ],
749         'group'   => [
750                 [
751                         'id'      => 1,
752                         'uid'     => 42,
753                         'visible' => 1,
754                         'name'    => 'Visible list',
755                 ],
756                 [
757                         'id'      => 2,
758                         'uid'     => 42,
759                         'visible' => 0,
760                         'name'    => 'Private list',
761                 ],
762         ],
763         'search'  => [
764                 [
765                         'id'   => 1,
766                         'term' => 'Saved search',
767                         'uid'  => 42,
768                 ],
769         ],
770 ];