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