]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.fixture.php
e85313ca617a844a28475be1b80329b375a8db67
[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                         'id'       => 42,
225                         'uid'      => 0,
226                         'uri-id'   => 42,
227                         'name'     => 'Self contact',
228                         'nick'     => 'selfcontact',
229                         'self'     => 1,
230                         'nurl'     => 'http://localhost/profile/selfcontact',
231                         'url'      => 'http://localhost/profile/selfcontact',
232                         'about'    => 'User used in tests',
233                         'pending'  => 0,
234                         'blocked'  => 0,
235                         'rel'      => Contact::FOLLOWER,
236                         'network'  => Protocol::DFRN,
237                         'location' => 'DFRN',
238                 ],
239         ],
240         'apcontact' => [
241                 [
242                         "url"              => "http://localhost/profile/selfcontact",
243                         "uri-id"           => 1,
244                         "uuid"             => "42",
245                         "type"             => "Person",
246                         "following"        => "http://localhost/following/selfcontact",
247                         "followers"        => "http://localhost/followers/selfcontact",
248                         "inbox"            => "http://localhost/inbox/selfcontact",
249                         "outbox"           => "http://localhost/outbox/selfcontact",
250                         "sharedinbox"      => "http://localhost/inbox",
251                         "manually-approve" => 1,
252                         "discoverable"     => 0,
253                         "nick"             => "selfcontact",
254                         "name"             => "Self contact",
255                         "about"            => "User used in tests",
256                         "xmpp"             => null,
257                         "matrix"           => null,
258                         "photo"            => "http://localhost/photo/profile/admin.jpeg",
259                         "header"           => null,
260                         "addr"             => "selfcontact@localhost",
261                         "alias"            => null,
262                         "pubkey"           => "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzLquDFnFxNYZZFQNbA9f\nkgtUJpC+MPrhxhEsjxme1ivvE4itdPnCueBHifknUkwfmqormyeqr4TdoVbNuKRg\nj2QRBdtaGbUJLQVdbiTKFOmJIYMtV05WIIHEhUW84fwIXmF+6u3kbOw+sIjWY3OW\nwC/2+54HiYS2n8cddfwoZBim6Na8yyQI8pQSKqJ+I4gDfkGuoVex0svNPEv9liLE\nykpQ3PuoeLJV2Wex0Cy6FYPgcfH6xvvUVxh6e8w0w22jC3DJInfDrmbw5H7aUbf+\nMMwV3TVI6/CqTO0cLEOZUjsUwdm6lIV0O0fTsrkjU9G0bc0sLJl7n9i9ICDOKOMf\nCLaK2Pj2sVbpkzXJoufLUDf0oSftdVvN9jR9WYxRdnwsyF8N/xVTw8AsyHhkXawR\n3YDgi6i2uZj5kvG7GPBf7EPZ/MpbGhEZB+/GQuZuyhLdgFDSi/uX8STBmn1jI/zY\nTLZ8JCwMzFKAXAtYaBPklZBbcRyz9O1893MsAXO8d6ODTOkD324gAjRUtuOMscYc\nWV98NZIUSbqQrznmMoJn1fiMNVgx+UXOPkiZuDxnrr1T3vynKnl5LXmadx2YeoAf\nxPeCoDb0eJtCDLcsTZ9qlztaEaohPV+H3HBSpdItea7LgAbccILHPssk9tUgmHVl\na5yV8uFenhKKQ9g93Pt63LsCAwEAAQ==\n-----END PUBLIC KEY-----",
263                         "subscribe"        => "/follow?url={uri}",
264                         "baseurl"          => null,
265                         "gsid"             => null,
266                         "generator"        => "Friendica 'Siberian Iris' 2021.12-dev-1443",
267                         "following_count"  => 0,
268                         "followers_count"  => 0,
269                         "statuses_count"   => 0,
270                         "updated"          => "2021-11-19 19:17:59",
271                 ],
272         ],
273         'verb' => [
274                 [
275                         'id'   => 0,
276                         'name' => '',
277                 ],
278                 [
279                         'id'   => 1,
280                         'name' => 'http://activitystrea.ms/schema/1.0/like',
281                 ],
282                 [
283                         'id'   => 2,
284                         'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike',
285                 ],
286                 [
287                         'id'   => 3,
288                         'name' => 'http://purl.org/zot/activity/attendyes',
289                 ],
290                 [
291                         'id'   => 4,
292                         'name' => 'http://purl.org/zot/activity/attendno',
293                 ],
294                 [
295                         'id'   => 5,
296                         'name' => 'http://purl.org/zot/activity/attendmaybe',
297                 ],
298                 [
299                         'id'   => 6,
300                         'name' => 'http://activitystrea.ms/schema/1.0/follow',
301                 ],
302                 [
303                         'id'   => 7,
304                         'name' => 'https://www.w3.org/ns/activitystreams#Announce',
305                 ],
306                 [
307                         'id'   => 8,
308                         'name' => 'http://activitystrea.ms/schema/1.0/post',
309                 ],
310         ],
311         'post-content' => [
312                 [
313                         'uri-id' => 1,
314                         'body'   => 'Parent status',
315                         'plink'  => 'http://localhost/display/1',
316                 ],
317                 [
318                         'uri-id' => 2,
319                         'body'   => 'Reply',
320                         'plink'  => 'http://localhost/display/2',
321                 ],
322                 [
323                         'uri-id' => 3,
324                         'body'   => 'Other user status',
325                         'plink'  => 'http://localhost/display/3',
326                 ],
327                 [
328                         'uri-id' => 4,
329                         'body'   => 'Friend user reply',
330                         'plink'  => 'http://localhost/display/4',
331                 ],
332                 [
333                         'uri-id' => 5,
334                         'body'   => '[share]Shared status[/share]',
335                         'plink'  => 'http://localhost/display/5',
336                 ],
337                 [
338                         'uri-id' => 6,
339                         'body'   => 'Friend user status',
340                         'plink'  => 'http://localhost/display/6',
341                 ],
342         ],
343         'post' => [
344                 [
345                         'uri-id'        => 1,
346                         'parent-uri-id' => 1,
347                         'thr-parent-id' => 1,
348                         'gravity'       => GRAVITY_PARENT,
349                         'network'       => Protocol::DFRN,
350                         'owner-id'      => 42,
351                         'author-id'     => 42,
352                         'causer-id'     => 42,
353                         'vid'           => 8,
354                         'private'       => Item::PUBLIC,
355                         'global'        => true,
356                         'visible'       => 1,
357                         'deleted'       => 0,
358                 ],
359                 [
360                         'uri-id'        => 2,
361                         'parent-uri-id' => 1,
362                         'thr-parent-id' => 1,
363                         'gravity'       => GRAVITY_COMMENT,
364                         'network'       => Protocol::DFRN,
365                         'owner-id'      => 42,
366                         'author-id'     => 42,
367                         'causer-id'     => 42,
368                         'vid'           => 8,
369                         'private'       => Item::PUBLIC,
370                         'global'        => true,
371                         'visible'       => 1,
372                         'deleted'       => 0,
373                 ],
374                 [
375                         'uri-id'        => 3,
376                         'parent-uri-id' => 3,
377                         'thr-parent-id' => 3,
378                         'gravity'       => GRAVITY_PARENT,
379                         'network'       => Protocol::DFRN,
380                         'owner-id'      => 42,
381                         'author-id'     => 43,
382                         'causer-id'     => 43,
383                         'vid'           => 8,
384                         'private'       => Item::PUBLIC,
385                         'global'        => true,
386                         'visible'       => 1,
387                         'deleted'       => 0,
388                 ],
389                 [
390                         'uri-id'        => 4,
391                         'parent-uri-id' => 1,
392                         'thr-parent-id' => 1,
393                         'gravity'       => GRAVITY_COMMENT,
394                         'network'       => Protocol::DFRN,
395                         'owner-id'      => 42,
396                         'author-id'     => 44,
397                         'causer-id'     => 44,
398                         'vid'           => 8,
399                         'private'       => Item::PUBLIC,
400                         'global'        => true,
401                         'visible'       => 1,
402                         'deleted'       => 0,
403                 ],
404                 [
405                         'uri-id'        => 5,
406                         'parent-uri-id' => 1,
407                         'thr-parent-id' => 1,
408                         'gravity'       => GRAVITY_COMMENT,
409                         'network'       => Protocol::DFRN,
410                         'owner-id'      => 42,
411                         'author-id'     => 42,
412                         'causer-id'     => 42,
413                         'vid'           => 8,
414                         'private'       => Item::PUBLIC,
415                         'global'        => true,
416                         'visible'       => 1,
417                         'deleted'       => 0,
418                 ],
419                 [
420                         'uri-id'        => 6,
421                         'parent-uri-id' => 6,
422                         'thr-parent-id' => 6,
423                         'gravity'       => GRAVITY_PARENT,
424                         'network'       => Protocol::DFRN,
425                         'owner-id'      => 42,
426                         'author-id'     => 44,
427                         'causer-id'     => 44,
428                         'vid'           => 8,
429                         'private'       => Item::PUBLIC,
430                         'global'        => true,
431                         'visible'       => 1,
432                         'deleted'       => 0,
433                 ],
434         ],
435         'post-user' => [
436                 [
437                         'id'            => 1,
438                         'uri-id'        => 1,
439                         'visible'       => 1,
440                         'contact-id'    => 42,
441                         'author-id'     => 42,
442                         'owner-id'      => 42,
443                         'causer-id'     => 42,
444                         'uid'           => 42,
445                         'vid'           => 8,
446                         'unseen'        => 1,
447                         'parent-uri-id' => 1,
448                         'thr-parent-id' => 1,
449                         'private'       => Item::PUBLIC,
450                         'global'        => true,
451                         'gravity'       => GRAVITY_PARENT,
452                         'network'       => Protocol::DFRN,
453                         'wall'          => 1,
454                         'origin'        => 1,
455                 ],
456                 [
457                         'id'            => 2,
458                         'uri-id'        => 2,
459                         'uid'           => 42,
460                         'contact-id'    => 42,
461                         'unseen'        => 0,
462                         'origin'        => 1,
463                         'parent-uri-id' => 1,
464                         'thr-parent-id' => 1,
465                         'gravity'       => GRAVITY_COMMENT,
466                         'network'       => Protocol::DFRN,
467                         'owner-id'      => 42,
468                         'author-id'     => 42,
469                         'causer-id'     => 42,
470                         'vid'           => 8,
471                         'private'       => Item::PUBLIC,
472                         'global'        => true,
473                         'visible'       => 1,
474                         'deleted'       => 0,
475                         'wall'          => 1,
476                 ],
477                 [
478                         'id'            => 3,
479                         'uri-id'        => 3,
480                         'uid'           => 42,
481                         'contact-id'    => 43,
482                         'unseen'        => 0,
483                         'origin'        => 1,
484                         'parent-uri-id' => 3,
485                         'thr-parent-id' => 3,
486                         'gravity'       => GRAVITY_PARENT,
487                         'network'       => Protocol::DFRN,
488                         'owner-id'      => 42,
489                         'author-id'     => 43,
490                         'causer-id'     => 43,
491                         'vid'           => 8,
492                         'private'       => Item::PUBLIC,
493                         'global'        => true,
494                         'visible'       => 1,
495                         'deleted'       => 0,
496                         'wall'          => 1,
497                 ],
498                 [
499                         'id'            => 4,
500                         'uri-id'        => 4,
501                         'uid'           => 42,
502                         'contact-id'    => 44,
503                         'unseen'        => 0,
504                         'origin'        => 1,
505                         'parent-uri-id' => 1,
506                         'thr-parent-id' => 1,
507                         'gravity'       => GRAVITY_COMMENT,
508                         'network'       => Protocol::DFRN,
509                         'owner-id'      => 42,
510                         'author-id'     => 44,
511                         'causer-id'     => 44,
512                         'vid'           => 8,
513                         'private'       => Item::PUBLIC,
514                         'global'        => true,
515                         'visible'       => 1,
516                         'deleted'       => 0,
517                         'wall'          => 1,
518                 ],
519                 [
520                         'id'            => 5,
521                         'uri-id'        => 5,
522                         'uid'           => 42,
523                         'contact-id'    => 42,
524                         'unseen'        => 0,
525                         'origin'        => 1,
526                         'parent-uri-id' => 1,
527                         'thr-parent-id' => 1,
528                         'gravity'       => GRAVITY_COMMENT,
529                         'network'       => Protocol::DFRN,
530                         'owner-id'      => 42,
531                         'author-id'     => 42,
532                         'causer-id'     => 42,
533                         'vid'           => 8,
534                         'private'       => Item::PUBLIC,
535                         'global'        => true,
536                         'visible'       => 1,
537                         'deleted'       => 0,
538                         'wall'          => 1,
539                 ],
540                 [
541                         'id'            => 6,
542                         'uri-id'        => 6,
543                         'uid'           => 42,
544                         'contact-id'    => 44,
545                         'unseen'        => 0,
546                         'origin'        => 1,
547                         'parent-uri-id' => 6,
548                         'thr-parent-id' => 6,
549                         'gravity'       => GRAVITY_PARENT,
550                         'network'       => Protocol::DFRN,
551                         'owner-id'      => 42,
552                         'author-id'     => 44,
553                         'causer-id'     => 44,
554                         'vid'           => 8,
555                         'private'       => Item::PUBLIC,
556                         'global'        => true,
557                         'visible'       => 1,
558                         'deleted'       => 0,
559                         'wall'          => 1,
560                 ],
561                 [
562                         'id'            => 7,
563                         'uri-id'        => 1,
564                         'uid'           => 0,
565                         'contact-id'    => 42,
566                         'unseen'        => 1,
567                         'origin'        => 0,
568                         'parent-uri-id' => 1,
569                         'thr-parent-id' => 1,
570                         'gravity'       => GRAVITY_PARENT,
571                         'network'       => Protocol::DFRN,
572                         'owner-id'      => 42,
573                         'author-id'     => 42,
574                         'causer-id'     => 42,
575                         'vid'           => 8,
576                         'private'       => Item::PUBLIC,
577                         'global'        => true,
578                         'visible'       => 1,
579                         'deleted'       => 0,
580                         'wall'          => 0,
581                 ],
582                 [
583                         'id'            => 8,
584                         'uri-id'        => 2,
585                         'uid'           => 0,
586                         'contact-id'    => 42,
587                         'unseen'        => 0,
588                         'origin'        => 0,
589                         'parent-uri-id' => 1,
590                         'thr-parent-id' => 1,
591                         'gravity'       => GRAVITY_COMMENT,
592                         'network'       => Protocol::DFRN,
593                         'owner-id'      => 42,
594                         'author-id'     => 42,
595                         'causer-id'     => 42,
596                         'vid'           => 8,
597                         'private'       => Item::PUBLIC,
598                         'global'        => true,
599                         'visible'       => 1,
600                         'deleted'       => 0,
601                         'wall'          => 0,
602                 ],
603                 [
604                         'id'            => 9,
605                         'uri-id'        => 3,
606                         'uid'           => 0,
607                         'contact-id'    => 43,
608                         'unseen'        => 0,
609                         'origin'        => 0,
610                         'parent-uri-id' => 3,
611                         'thr-parent-id' => 3,
612                         'gravity'       => GRAVITY_PARENT,
613                         'network'       => Protocol::DFRN,
614                         'owner-id'      => 42,
615                         'author-id'     => 43,
616                         'causer-id'     => 43,
617                         'vid'           => 8,
618                         'private'       => Item::PUBLIC,
619                         'global'        => true,
620                         'visible'       => 1,
621                         'deleted'       => 0,
622                         'wall'          => 0,
623                 ],
624                 [
625                         'id'            => 10,
626                         'uri-id'        => 4,
627                         'uid'           => 0,
628                         'contact-id'    => 44,
629                         'unseen'        => 0,
630                         'origin'        => 0,
631                         'parent-uri-id' => 1,
632                         'thr-parent-id' => 1,
633                         'gravity'       => GRAVITY_COMMENT,
634                         'network'       => Protocol::DFRN,
635                         'owner-id'      => 42,
636                         'author-id'     => 44,
637                         'causer-id'     => 44,
638                         'vid'           => 8,
639                         'private'       => Item::PUBLIC,
640                         'global'        => true,
641                         'visible'       => 1,
642                         'deleted'       => 0,
643                         'wall'          => 0,
644                 ],
645                 [
646                         'id'            => 11,
647                         'uri-id'        => 5,
648                         'uid'           => 0,
649                         'contact-id'    => 42,
650                         'unseen'        => 0,
651                         'origin'        => 0,
652                         'parent-uri-id' => 1,
653                         'thr-parent-id' => 1,
654                         'gravity'       => GRAVITY_COMMENT,
655                         'network'       => Protocol::DFRN,
656                         'owner-id'      => 42,
657                         'author-id'     => 42,
658                         'causer-id'     => 42,
659                         'vid'           => 8,
660                         'private'       => Item::PUBLIC,
661                         'global'        => true,
662                         'visible'       => 1,
663                         'deleted'       => 0,
664                         'wall'          => 0,
665                 ],
666                 [
667                         'id'            => 12,
668                         'uri-id'        => 6,
669                         'visible'       => 1,
670                         'contact-id'    => 44,
671                         'author-id'     => 44,
672                         'owner-id'      => 42,
673                         'causer-id'     => 44,
674                         'uid'           => 0,
675                         'vid'           => 8,
676                         'unseen'        => 0,
677                         'parent-uri-id' => 6,
678                         'thr-parent-id' => 6,
679                         'private'       => Item::PUBLIC,
680                         'global'        => true,
681                         'gravity'       => GRAVITY_PARENT,
682                         'network'       => Protocol::DFRN,
683                         'origin'        => 0,
684                         'deleted'       => 0,
685                         'wall'          => 0,
686                 ],
687         ],
688         'post-thread' => [
689                 [
690                         'uri-id'    => 1,
691                         'author-id' => 42,
692                         'owner-id'  => 42,
693                         'causer-id' => 42,
694                         'network'   => Protocol::DFRN,
695                 ],
696                 [
697                         'uri-id'    => 3,
698                         'author-id' => 43,
699                         'owner-id'  => 43,
700                         'causer-id' => 43,
701                         'network'   => Protocol::DFRN,
702                 ],
703                 [
704                         'uri-id'    => 6,
705                         'author-id' => 44,
706                         'owner-id'  => 44,
707                         'causer-id' => 44,
708                         'network'   => Protocol::DFRN,
709                 ],
710         ],
711         'post-thread-user' => [
712                 [
713                         'uri-id'       => 1,
714                         'uid'          => 42,
715                         'wall'         => 1,
716                         'post-user-id' => 1,
717                         'author-id'    => 42,
718                         'owner-id'     => 42,
719                         'causer-id'    => 42,
720                         'contact-id'   => 42,
721                         'network'      => Protocol::DFRN,
722                         'starred'      => 1,
723                         'origin'       => 1,
724                 ],
725                 [
726                         'uri-id'       => 3,
727                         'uid'          => 42,
728                         'wall'         => 1,
729                         'post-user-id' => 3,
730                         'author-id'    => 43,
731                         'owner-id'     => 43,
732                         'causer-id'    => 43,
733                         'contact-id'   => 43,
734                         'network'      => Protocol::DFRN,
735                         'starred'      => 0,
736                         'origin'       => 1,
737                 ],
738                 [
739                         'uri-id'       => 6,
740                         'uid'          => 42,
741                         'wall'         => 1,
742                         'post-user-id' => 6,
743                         'author-id'    => 44,
744                         'owner-id'     => 44,
745                         'causer-id'    => 44,
746                         'contact-id'   => 44,
747                         'network'      => Protocol::DFRN,
748                         'starred'      => 0,
749                         'origin'       => 1,
750                 ],
751                 [
752                         'uri-id'       => 1,
753                         'uid'          => 0,
754                         'wall'         => 0,
755                         'post-user-id' => 7,
756                         'author-id'    => 42,
757                         'owner-id'     => 42,
758                         'causer-id'    => 42,
759                         'contact-id'   => 42,
760                         'network'      => Protocol::DFRN,
761                         'starred'      => 0,
762                         'origin'       => 0,
763                 ],
764                 [
765                         'uri-id'       => 3,
766                         'uid'          => 0,
767                         'wall'         => 0,
768                         'post-user-id' => 9,
769                         'author-id'    => 43,
770                         'owner-id'     => 43,
771                         'causer-id'    => 43,
772                         'contact-id'   => 43,
773                         'network'      => Protocol::DFRN,
774                         'starred'      => 0,
775                         'origin'       => 0,
776                 ],
777                 [
778                         'uri-id'       => 6,
779                         'uid'          => 0,
780                         'wall'         => 0,
781                         'post-user-id' => 12,
782                         'author-id'    => 44,
783                         'owner-id'     => 44,
784                         'causer-id'    => 44,
785                         'contact-id'   => 44,
786                         'network'      => Protocol::DFRN,
787                         'starred'      => 0,
788                         'origin'       => 0,
789                 ],
790         ],
791         'notify' => [
792                 [
793                         'id'         => 1,
794                         'type'       => 8,
795                         'name'       => 'Reply to',
796                         'url'        => 'http://localhost/display/1',
797                         'photo'      => 'http://localhost/',
798                         'date'       => '2020-01-01 12:12:02',
799                         'msg'        => 'A test reply from an item',
800                         'uid'        => 42,
801                         'link'       => 'http://localhost/notification/1',
802                         'iid'        => 4,
803                         'seen'       => 0,
804                         'verb'       => \Friendica\Protocol\Activity::POST,
805                         'otype'      => Notification\ObjectType::ITEM,
806                         'name_cache' => 'Reply to',
807                         'msg_cache'  => 'A test reply from an item',
808                 ],
809         ],
810         'profile' => [
811                 [
812                         'id'  => 1,
813                         'uid' => 42,
814                 ],
815         ],
816         'group' => [
817                 [
818                         'id'      => 1,
819                         'uid'     => 42,
820                         'visible' => 1,
821                         'name'    => 'Visible list',
822                 ],
823                 [
824                         'id'      => 2,
825                         'uid'     => 42,
826                         'visible' => 0,
827                         'name'    => 'Private list',
828                 ],
829         ],
830         'group_member' => [
831                 [
832                         'id' => 1,
833                         'gid' => 1,
834                         'contact-id' => 42,
835                 ],
836         ],
837         'search' => [
838                 [
839                         'id'   => 1,
840                         'term' => 'Saved search',
841                         'uid'  => 42,
842                 ],
843         ],
844 ];