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