]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.fixture.php
Friendica now requires PHP 7.3 or above
[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                         'global'        => true,
307                         'visible'       => 1,
308                         'deleted'       => 0,
309                 ],
310                 [
311                         'uri-id'        => 2,
312                         'parent-uri-id' => 1,
313                         'thr-parent-id' => 1,
314                         'gravity'       => GRAVITY_COMMENT,
315                         'network'       => Protocol::DFRN,
316                         'owner-id'      => 42,
317                         'author-id'     => 42,
318                         'causer-id'     => 42,
319                         'vid'           => 8,
320                         'private'       => Item::PUBLIC,
321                         'global'        => true,
322                         'visible'       => 1,
323                         'deleted'       => 0,
324                 ],
325                 [
326                         'uri-id'        => 3,
327                         'parent-uri-id' => 3,
328                         'thr-parent-id' => 3,
329                         'gravity'       => GRAVITY_PARENT,
330                         'network'       => Protocol::DFRN,
331                         'owner-id'      => 42,
332                         'author-id'     => 43,
333                         'causer-id'     => 43,
334                         'vid'           => 8,
335                         'private'       => Item::PUBLIC,
336                         'global'        => true,
337                         'visible'       => 1,
338                         'deleted'       => 0,
339                 ],
340                 [
341                         'uri-id'        => 4,
342                         'parent-uri-id' => 1,
343                         'thr-parent-id' => 1,
344                         'gravity'       => GRAVITY_COMMENT,
345                         'network'       => Protocol::DFRN,
346                         'owner-id'      => 42,
347                         'author-id'     => 44,
348                         'causer-id'     => 44,
349                         'vid'           => 8,
350                         'private'       => Item::PUBLIC,
351                         'global'        => true,
352                         'visible'       => 1,
353                         'deleted'       => 0,
354                 ],
355                 [
356                         'uri-id'        => 5,
357                         'parent-uri-id' => 1,
358                         'thr-parent-id' => 1,
359                         'gravity'       => GRAVITY_COMMENT,
360                         'network'       => Protocol::DFRN,
361                         'owner-id'      => 42,
362                         'author-id'     => 42,
363                         'causer-id'     => 42,
364                         'vid'           => 8,
365                         'private'       => Item::PUBLIC,
366                         'global'        => true,
367                         'visible'       => 1,
368                         'deleted'       => 0,
369                 ],
370                 [
371                         'uri-id'        => 6,
372                         'parent-uri-id' => 6,
373                         'thr-parent-id' => 6,
374                         'gravity'       => GRAVITY_PARENT,
375                         'network'       => Protocol::DFRN,
376                         'owner-id'      => 42,
377                         'author-id'     => 44,
378                         'causer-id'     => 44,
379                         'vid'           => 8,
380                         'private'       => Item::PUBLIC,
381                         'global'        => true,
382                         'visible'       => 1,
383                         'deleted'       => 0,
384                 ],
385         ],
386         'post-user' => [
387                 [
388                         'id'            => 1,
389                         'uri-id'        => 1,
390                         'visible'       => 1,
391                         'contact-id'    => 42,
392                         'author-id'     => 42,
393                         'owner-id'      => 42,
394                         'causer-id'     => 42,
395                         'uid'           => 42,
396                         'vid'           => 8,
397                         'unseen'        => 1,
398                         'parent-uri-id' => 1,
399                         'thr-parent-id' => 1,
400                         'private'       => Item::PUBLIC,
401                         'global'        => true,
402                         'gravity'       => GRAVITY_PARENT,
403                         'network'       => Protocol::DFRN,
404                         'wall'          => 1,
405                         'origin'        => 1,
406                 ],
407                 [
408                         'id'            => 2,
409                         'uri-id'        => 2,
410                         'uid'           => 42,
411                         'contact-id'    => 42,
412                         'unseen'        => 0,
413                         'origin'        => 1,
414                         'parent-uri-id' => 1,
415                         'thr-parent-id' => 1,
416                         'gravity'       => GRAVITY_COMMENT,
417                         'network'       => Protocol::DFRN,
418                         'owner-id'      => 42,
419                         'author-id'     => 42,
420                         'causer-id'     => 42,
421                         'vid'           => 8,
422                         'private'       => Item::PUBLIC,
423                         'global'        => true,
424                         'visible'       => 1,
425                         'deleted'       => 0,
426                         'wall'          => 1,
427                 ],
428                 [
429                         'id'            => 3,
430                         'uri-id'        => 3,
431                         'uid'           => 42,
432                         'contact-id'    => 43,
433                         'unseen'        => 0,
434                         'origin'        => 1,
435                         'parent-uri-id' => 3,
436                         'thr-parent-id' => 3,
437                         'gravity'       => GRAVITY_PARENT,
438                         'network'       => Protocol::DFRN,
439                         'owner-id'      => 42,
440                         'author-id'     => 43,
441                         'causer-id'     => 43,
442                         'vid'           => 8,
443                         'private'       => Item::PUBLIC,
444                         'global'        => true,
445                         'visible'       => 1,
446                         'deleted'       => 0,
447                         'wall'          => 1,
448                 ],
449                 [
450                         'id'            => 4,
451                         'uri-id'        => 4,
452                         'uid'           => 42,
453                         'contact-id'    => 44,
454                         'unseen'        => 0,
455                         'origin'        => 1,
456                         'parent-uri-id' => 1,
457                         'thr-parent-id' => 1,
458                         'gravity'       => GRAVITY_COMMENT,
459                         'network'       => Protocol::DFRN,
460                         'owner-id'      => 42,
461                         'author-id'     => 44,
462                         'causer-id'     => 44,
463                         'vid'           => 8,
464                         'private'       => Item::PUBLIC,
465                         'global'        => true,
466                         'visible'       => 1,
467                         'deleted'       => 0,
468                         'wall'          => 1,
469                 ],
470                 [
471                         'id'            => 5,
472                         'uri-id'        => 5,
473                         'uid'           => 42,
474                         'contact-id'    => 42,
475                         'unseen'        => 0,
476                         'origin'        => 1,
477                         'parent-uri-id' => 1,
478                         'thr-parent-id' => 1,
479                         'gravity'       => GRAVITY_COMMENT,
480                         'network'       => Protocol::DFRN,
481                         'owner-id'      => 42,
482                         'author-id'     => 42,
483                         'causer-id'     => 42,
484                         'vid'           => 8,
485                         'private'       => Item::PUBLIC,
486                         'global'        => true,
487                         'visible'       => 1,
488                         'deleted'       => 0,
489                         'wall'          => 1,
490                 ],
491                 [
492                         'id'            => 6,
493                         'uri-id'        => 6,
494                         'uid'           => 42,
495                         'contact-id'    => 44,
496                         'unseen'        => 0,
497                         'origin'        => 1,
498                         'parent-uri-id' => 6,
499                         'thr-parent-id' => 6,
500                         'gravity'       => GRAVITY_PARENT,
501                         'network'       => Protocol::DFRN,
502                         'owner-id'      => 42,
503                         'author-id'     => 44,
504                         'causer-id'     => 44,
505                         'vid'           => 8,
506                         'private'       => Item::PUBLIC,
507                         'global'        => true,
508                         'visible'       => 1,
509                         'deleted'       => 0,
510                         'wall'          => 1,
511                 ],
512                 [
513                         'id'            => 7,
514                         'uri-id'        => 1,
515                         'uid'           => 0,
516                         'contact-id'    => 42,
517                         'unseen'        => 1,
518                         'origin'        => 0,
519                         'parent-uri-id' => 1,
520                         'thr-parent-id' => 1,
521                         'gravity'       => GRAVITY_PARENT,
522                         'network'       => Protocol::DFRN,
523                         'owner-id'      => 42,
524                         'author-id'     => 42,
525                         'causer-id'     => 42,
526                         'vid'           => 8,
527                         'private'       => Item::PUBLIC,
528                         'global'        => true,
529                         'visible'       => 1,
530                         'deleted'       => 0,
531                         'wall'          => 0,
532                 ],
533                 [
534                         'id'            => 8,
535                         'uri-id'        => 2,
536                         'uid'           => 0,
537                         'contact-id'    => 42,
538                         'unseen'        => 0,
539                         'origin'        => 0,
540                         'parent-uri-id' => 1,
541                         'thr-parent-id' => 1,
542                         'gravity'       => GRAVITY_COMMENT,
543                         'network'       => Protocol::DFRN,
544                         'owner-id'      => 42,
545                         'author-id'     => 42,
546                         'causer-id'     => 42,
547                         'vid'           => 8,
548                         'private'       => Item::PUBLIC,
549                         'global'        => true,
550                         'visible'       => 1,
551                         'deleted'       => 0,
552                         'wall'          => 0,
553                 ],
554                 [
555                         'id'            => 9,
556                         'uri-id'        => 3,
557                         'uid'           => 0,
558                         'contact-id'    => 43,
559                         'unseen'        => 0,
560                         'origin'        => 0,
561                         'parent-uri-id' => 3,
562                         'thr-parent-id' => 3,
563                         'gravity'       => GRAVITY_PARENT,
564                         'network'       => Protocol::DFRN,
565                         'owner-id'      => 42,
566                         'author-id'     => 43,
567                         'causer-id'     => 43,
568                         'vid'           => 8,
569                         'private'       => Item::PUBLIC,
570                         'global'        => true,
571                         'visible'       => 1,
572                         'deleted'       => 0,
573                         'wall'          => 0,
574                 ],
575                 [
576                         'id'            => 10,
577                         'uri-id'        => 4,
578                         'uid'           => 0,
579                         'contact-id'    => 44,
580                         'unseen'        => 0,
581                         'origin'        => 0,
582                         'parent-uri-id' => 1,
583                         'thr-parent-id' => 1,
584                         'gravity'       => GRAVITY_COMMENT,
585                         'network'       => Protocol::DFRN,
586                         'owner-id'      => 42,
587                         'author-id'     => 44,
588                         'causer-id'     => 44,
589                         'vid'           => 8,
590                         'private'       => Item::PUBLIC,
591                         'global'        => true,
592                         'visible'       => 1,
593                         'deleted'       => 0,
594                         'wall'          => 0,
595                 ],
596                 [
597                         'id'            => 11,
598                         'uri-id'        => 5,
599                         'uid'           => 0,
600                         'contact-id'    => 42,
601                         'unseen'        => 0,
602                         'origin'        => 0,
603                         'parent-uri-id' => 1,
604                         'thr-parent-id' => 1,
605                         'gravity'       => GRAVITY_COMMENT,
606                         'network'       => Protocol::DFRN,
607                         'owner-id'      => 42,
608                         'author-id'     => 42,
609                         'causer-id'     => 42,
610                         'vid'           => 8,
611                         'private'       => Item::PUBLIC,
612                         'global'        => true,
613                         'visible'       => 1,
614                         'deleted'       => 0,
615                         'wall'          => 0,
616                 ],
617                 [
618                         'id'            => 12,
619                         'uri-id'        => 6,
620                         'visible'       => 1,
621                         'contact-id'    => 44,
622                         'author-id'     => 44,
623                         'owner-id'      => 42,
624                         'causer-id'     => 44,
625                         'uid'           => 0,
626                         'vid'           => 8,
627                         'unseen'        => 0,
628                         'parent-uri-id' => 6,
629                         'thr-parent-id' => 6,
630                         'private'       => Item::PUBLIC,
631                         'global'        => true,
632                         'gravity'       => GRAVITY_PARENT,
633                         'network'       => Protocol::DFRN,
634                         'origin'        => 0,
635                         'deleted'       => 0,
636                         'wall'          => 0,
637                 ],
638         ],
639         'post-thread'  => [
640                 [
641                         'uri-id'     => 1,
642                         'author-id'  => 42,
643                         'owner-id'   => 42,
644                         'causer-id'  => 42,
645                         'network'    => Protocol::DFRN,
646                 ],
647                 [
648                         'uri-id'     => 3,
649                         'author-id'  => 43,
650                         'owner-id'   => 43,
651                         'causer-id'  => 43,
652                         'network'    => Protocol::DFRN,
653                 ],
654                 [
655                         'uri-id'     => 6,
656                         'author-id'  => 44,
657                         'owner-id'   => 44,
658                         'causer-id'  => 44,
659                         'network'    => Protocol::DFRN,
660                 ],
661         ],
662         'post-thread-user'  => [
663                 [
664                         'uri-id'     => 1,
665                         'uid'        => 42,
666                         'wall'       => 1,
667                         'post-user-id' => 1,
668                         'author-id'  => 42,
669                         'owner-id'   => 42,
670                         'causer-id'  => 42,
671                         'contact-id' => 42,
672                         'network'    => Protocol::DFRN,
673                         'starred'    => 1,
674                         'origin'     => 1,
675                 ],
676                 [
677                         'uri-id'     => 3,
678                         'uid'        => 42,
679                         'wall'       => 1,
680                         'post-user-id' => 3,
681                         'author-id'  => 43,
682                         'owner-id'   => 43,
683                         'causer-id'  => 43,
684                         'contact-id' => 43,
685                         'network'    => Protocol::DFRN,
686                         'starred'    => 0,
687                         'origin'     => 1,
688                 ],
689                 [
690                         'uri-id'     => 6,
691                         'uid'        => 42,
692                         'wall'       => 1,
693                         'post-user-id' => 6,
694                         'author-id'  => 44,
695                         'owner-id'   => 44,
696                         'causer-id'  => 44,
697                         'contact-id' => 44,
698                         'network'    => Protocol::DFRN,
699                         'starred'    => 0,
700                         'origin'     => 1,
701                 ],
702                 [
703                         'uri-id'     => 1,
704                         'uid'        => 0,
705                         'wall'       => 0,
706                         'post-user-id' => 7,
707                         'author-id'  => 42,
708                         'owner-id'   => 42,
709                         'causer-id'  => 42,
710                         'contact-id' => 42,
711                         'network'    => Protocol::DFRN,
712                         'starred'    => 0,
713                         'origin'     => 0,
714                 ],
715                 [
716                         'uri-id'     => 3,
717                         'uid'        => 0,
718                         'wall'       => 0,
719                         'post-user-id' => 9,
720                         'author-id'  => 43,
721                         'owner-id'   => 43,
722                         'causer-id'  => 43,
723                         'contact-id' => 43,
724                         'network'    => Protocol::DFRN,
725                         'starred'    => 0,
726                         'origin'     => 0,
727                 ],
728                 [
729                         'uri-id'     => 6,
730                         'uid'        => 0,
731                         'wall'       => 0,
732                         'post-user-id' => 12,
733                         'author-id'  => 44,
734                         'owner-id'   => 44,
735                         'causer-id'  => 44,
736                         'contact-id' => 44,
737                         'network'    => Protocol::DFRN,
738                         'starred'    => 0,
739                         'origin'     => 0,
740                 ],
741         ],
742         'notify' => [
743                 [
744                         'id' => 1,
745                         'type' => 8,
746                         'name' => 'Reply to',
747                         'url' => 'http://localhost/display/1',
748                         'photo' => 'http://localhost/',
749                         'date' => '2020-01-01 12:12:02',
750                         'msg' => 'A test reply from an item',
751                         'uid' => 42,
752                         'link' => 'http://localhost/notification/1',
753                         'iid' => 4,
754                         'seen' => 0,
755                         'verb' => \Friendica\Protocol\Activity::POST,
756                         'otype' => Notification\ObjectType::ITEM,
757                         'name_cache' => 'Reply to',
758                         'msg_cache' => 'A test reply from an item',
759                 ],
760         ],
761         'profile' => [
762                 [
763                         'id' => 1,
764                         'uid' => 42,
765                 ],
766         ],
767         'group'   => [
768                 [
769                         'id'      => 1,
770                         'uid'     => 42,
771                         'visible' => 1,
772                         'name'    => 'Visible list',
773                 ],
774                 [
775                         'id'      => 2,
776                         'uid'     => 42,
777                         'visible' => 0,
778                         'name'    => 'Private list',
779                 ],
780         ],
781         'search'  => [
782                 [
783                         'id'   => 1,
784                         'term' => 'Saved search',
785                         'uid'  => 42,
786                 ],
787         ],
788 ];