]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.fixture.php
Merge remote-tracking branch 'upstream/develop' into fetch-usage
[friendica.git] / tests / datasets / api.fixture.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2022, 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                         'id'   => 7,
110                         'uri'  => '7',
111                         'guid' => '7',
112                 ],
113                 [
114                         'id'   => 42,
115                         'uri'  => 'http://localhost/profile/selfcontact',
116                         'guid' => '42',
117                 ],
118                 [
119                         'id'   => 43,
120                         'uri'  => 'http://localhost/profile/othercontact',
121                         'guid' => '43',
122                 ],
123                 [
124                         'id'   => 44,
125                         'uri'  => 'http://localhost/profile/friendcontact',
126                         'guid' => '44',
127                 ],
128                 [
129                         'id'   => 46,
130                         'uri'  => 'http://localhost/profile/mutualcontact',
131                         'guid' => '46',
132                 ],
133         ],
134         'contact' => [
135                 [
136                         'id'       => 42,
137                         'uid'      => 42,
138                         'uri-id'   => 42,
139                         'name'     => 'Self contact',
140                         'nick'     => 'selfcontact',
141                         'self'     => 1,
142                         'nurl'     => 'http://localhost/profile/selfcontact',
143                         'url'      => 'http://localhost/profile/selfcontact',
144                         'notify'   => 'http://localhost/friendica/inbox',
145                         'about'    => 'User used in tests',
146                         '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-----",
147                         'pubkey'   => "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVqxF9kIgtgRL0+q+jTi578FA1\nr1+crEmlYc0pdxcbmmrhjuRcrK1gX3r0mnP25fkHzG+6CAjgbDBRFM1/RXBCyp/K\nHVks7eQ4yr4MxTRlsxo5qf2onbyNzM7Q+LZhFhe/yIoGN/fuEjlqBE98IfPOrUjs\nQPX240vGNXIkfLiAWwIDAQAB\n-----END PUBLIC KEY-----",
148                         'pending'  => 0,
149                         'blocked'  => 0,
150                         'rel'      => Contact::FOLLOWER,
151                         'network'  => Protocol::DFRN,
152                         'location' => 'DFRN',
153                 ],
154                 // Having the same name and nick allows us to test
155                 // the fallback to api_get_nick() in api_get_user()
156                 [
157                         'id'       => 43,
158                         'uid'      => 0,
159                         'uri-id'   => 43,
160                         'name'     => 'othercontact',
161                         'nick'     => 'othercontact',
162                         'self'     => 0,
163                         'nurl'     => 'http://localhost/profile/othercontact',
164                         'url'      => 'http://localhost/profile/othercontact',
165                         'notify'   => 'http://localhost/friendica/inbox',
166                         'pending'  => 0,
167                         'blocked'  => 0,
168                         'rel'      => Contact::NOTHING,
169                         'network'  => Protocol::DFRN,
170                         'location' => 'DFRN',
171                 ],
172                 [
173                         'id'       => 44,
174                         'uid'      => 42,
175                         'uri-id'   => 44,
176                         'name'     => 'Friend contact',
177                         'nick'     => 'friendcontact',
178                         'self'     => 0,
179                         'nurl'     => 'http://localhost/profile/friendcontact',
180                         'url'      => 'http://localhost/profile/friendcontact',
181                         'notify'   => 'http://localhost/friendica/inbox',
182                         'pending'  => 0,
183                         'blocked'  => 0,
184                         'rel'      => Contact::SHARING,
185                         'network'  => Protocol::DFRN,
186                         'location' => 'DFRN',
187                 ],
188                 [
189                         'id'       => 45,
190                         'uid'      => 0,
191                         'uri-id'   => 44,
192                         'name'     => 'Friend contact',
193                         'nick'     => 'friendcontact',
194                         'self'     => 0,
195                         'nurl'     => 'http://localhost/profile/friendcontact',
196                         'url'      => 'http://localhost/profile/friendcontact',
197                         'notify'   => 'http://localhost/friendica/inbox',
198                         'pending'  => 0,
199                         'blocked'  => 0,
200                         'rel'      => Contact::SHARING,
201                         'network'  => Protocol::DFRN,
202                         'location' => 'DFRN',
203                 ],
204                 [
205                         'id'       => 46,
206                         'uid'      => 42,
207                         'uri-id'   => 46,
208                         'name'     => 'Mutual contact',
209                         'nick'     => 'mutualcontact',
210                         'self'     => 0,
211                         'nurl'     => 'http://localhost/profile/mutualcontact',
212                         'url'      => 'http://localhost/profile/mutualcontact',
213                         'notify'   => 'http://localhost/friendica/inbox',
214                         'pending'  => 0,
215                         'blocked'  => 0,
216                         'rel'      => Contact::FRIEND,
217                         'network'  => Protocol::DFRN,
218                         'location' => 'DFRN',
219                 ],
220                 [
221                         'id'       => 47,
222                         'uid'      => 0,
223                         'uri-id'   => 46,
224                         'name'     => 'Mutual contact',
225                         'nick'     => 'mutualcontact',
226                         'self'     => 0,
227                         'nurl'     => 'http://localhost/profile/mutualcontact',
228                         'url'      => 'http://localhost/profile/mutualcontact',
229                         'notify'   => 'http://localhost/friendica/inbox',
230                         'pending'  => 0,
231                         'blocked'  => 0,
232                         'rel'      => Contact::SHARING,
233                         'network'  => Protocol::DFRN,
234                         'location' => 'DFRN',
235                 ],
236                 [
237                         'id'       => 48,
238                         'uid'      => 0,
239                         'uri-id'   => 42,
240                         'name'     => 'Self contact',
241                         'nick'     => 'selfcontact',
242                         'self'     => 0,
243                         'nurl'     => 'http://localhost/profile/selfcontact',
244                         'url'      => 'http://localhost/profile/selfcontact',
245                         'notify'   => 'http://localhost/friendica/inbox',
246                         'about'    => 'User used in tests',
247                         'pending'  => 0,
248                         'blocked'  => 0,
249                         'rel'      => Contact::FOLLOWER,
250                         'network'  => Protocol::DFRN,
251                         'location' => 'DFRN',
252                 ],
253         ],
254         'apcontact' => [
255                 [
256                         "url"              => "http://localhost/profile/selfcontact",
257                         "uri-id"           => 1,
258                         "uuid"             => "42",
259                         "type"             => "Person",
260                         "following"        => "http://localhost/following/selfcontact",
261                         "followers"        => "http://localhost/followers/selfcontact",
262                         "inbox"            => "http://localhost/inbox/selfcontact",
263                         "outbox"           => "http://localhost/outbox/selfcontact",
264                         "sharedinbox"      => "http://localhost/inbox",
265                         "manually-approve" => 1,
266                         "discoverable"     => 0,
267                         "nick"             => "selfcontact",
268                         "name"             => "Self contact",
269                         "about"            => "User used in tests",
270                         "xmpp"             => null,
271                         "matrix"           => null,
272                         "photo"            => "http://localhost/photo/profile/admin.jpeg",
273                         "header"           => null,
274                         "addr"             => "selfcontact@localhost",
275                         "alias"            => null,
276                         "pubkey"           => "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVqxF9kIgtgRL0+q+jTi578FA1\nr1+crEmlYc0pdxcbmmrhjuRcrK1gX3r0mnP25fkHzG+6CAjgbDBRFM1/RXBCyp/K\nHVks7eQ4yr4MxTRlsxo5qf2onbyNzM7Q+LZhFhe/yIoGN/fuEjlqBE98IfPOrUjs\nQPX240vGNXIkfLiAWwIDAQAB\n-----END PUBLIC KEY-----",
277                         "subscribe"        => "/follow?url={uri}",
278                         "baseurl"          => null,
279                         "gsid"             => null,
280                         "generator"        => "Friendica 'Siberian Iris' 2021.12-dev-1443",
281                         "following_count"  => 0,
282                         "followers_count"  => 0,
283                         "statuses_count"   => 0,
284                         "updated"          => "2021-11-19 19:17:59",
285                 ],
286         ],
287         'verb' => [
288                 [
289                         'id'   => 0,
290                         'name' => '',
291                 ],
292                 [
293                         'id'   => 1,
294                         'name' => 'http://activitystrea.ms/schema/1.0/like',
295                 ],
296                 [
297                         'id'   => 2,
298                         'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike',
299                 ],
300                 [
301                         'id'   => 3,
302                         'name' => 'http://purl.org/zot/activity/attendyes',
303                 ],
304                 [
305                         'id'   => 4,
306                         'name' => 'http://purl.org/zot/activity/attendno',
307                 ],
308                 [
309                         'id'   => 5,
310                         'name' => 'http://purl.org/zot/activity/attendmaybe',
311                 ],
312                 [
313                         'id'   => 6,
314                         'name' => 'http://activitystrea.ms/schema/1.0/follow',
315                 ],
316                 [
317                         'id'   => 7,
318                         'name' => 'https://www.w3.org/ns/activitystreams#Announce',
319                 ],
320                 [
321                         'id'   => 8,
322                         'name' => 'http://activitystrea.ms/schema/1.0/post',
323                 ],
324         ],
325         'post-content' => [
326                 [
327                         'uri-id' => 1,
328                         'body'   => 'Parent status',
329                         'plink'  => 'http://localhost/display/1',
330                 ],
331                 [
332                         'uri-id' => 2,
333                         'body'   => 'Reply',
334                         'plink'  => 'http://localhost/display/2',
335                 ],
336                 [
337                         'uri-id' => 3,
338                         'body'   => 'Other user status',
339                         'plink'  => 'http://localhost/display/3',
340                 ],
341                 [
342                         'uri-id' => 4,
343                         'body'   => 'Friend user reply',
344                         'plink'  => 'http://localhost/display/4',
345                 ],
346                 [
347                         'uri-id' => 5,
348                         'body'   => '[share]Shared status[/share]',
349                         'plink'  => 'http://localhost/display/5',
350                 ],
351                 [
352                         'uri-id' => 6,
353                         'body'   => 'Friend user status',
354                         'plink'  => 'http://localhost/display/6',
355                 ],
356                 [
357                         'uri-id' => 7,
358                         'title'  => 'item_title',
359                         'body'   => 'perspiciatis impedit voluptatem quis molestiae ea qui ' .
360                                                 'reiciendis dolorum aut ducimus sunt consequatur inventore dolor ' .
361                                                 'officiis pariatur doloremque nemo culpa aut quidem qui dolore ' .
362                                                 'laudantium atque commodi alias voluptatem non possimus aperiam ' .
363                                                 'ipsum rerum consequuntur aut amet fugit quia aliquid praesentium ' .
364                                                 'repellendus quibusdam et et inventore mollitia rerum sit autem ' .
365                                                 'pariatur maiores ipsum accusantium perferendis vel sit possimus ' .
366                                                 'veritatis nihil distinctio qui eum repellat officia illum quos ' .
367                                                 'impedit quam iste esse unde qui suscipit aut facilis ut inventore ' .
368                                                 'omnis exercitationem quo magnam consequatur maxime aut illum ' .
369                                                 'soluta quaerat natus unde aspernatur et sed beatae nihil ullam ' .
370                                                 'temporibus corporis ratione blanditiis perspiciatis impedit ' .
371                                                 'voluptatem quis molestiae ea qui reiciendis dolorum aut ducimus ' .
372                                                 'sunt consequatur inventore dolor officiis pariatur doloremque ' .
373                                                 'nemo culpa aut quidem qui dolore laudantium atque commodi alias ' .
374                                                 'voluptatem non possimus aperiam ipsum rerum consequuntur aut ' .
375                                                 'amet fugit quia aliquid praesentium repellendus quibusdam et et ' .
376                                                 'inventore mollitia rerum sit autem pariatur maiores ipsum accusantium ' .
377                                                 'perferendis vel sit possimus veritatis nihil distinctio qui eum ' .
378                                                 'repellat officia illum quos impedit quam iste esse unde qui ' .
379                                                 'suscipit aut facilis ut inventore omnis exercitationem quo magnam ' .
380                                                 'consequatur maxime aut illum soluta quaerat natus unde aspernatur ' .
381                                                 'et sed beatae nihil ullam temporibus corporis ratione blanditiis',
382                         'plink'  => 'http://localhost/display/6',
383                 ],
384         ],
385         'post' => [
386                 [
387                         'uri-id'        => 1,
388                         'parent-uri-id' => 1,
389                         'thr-parent-id' => 1,
390                         'gravity'       => GRAVITY_PARENT,
391                         'network'       => Protocol::DFRN,
392                         'owner-id'      => 42,
393                         'author-id'     => 42,
394                         'causer-id'     => 42,
395                         'vid'           => 8,
396                         'private'       => Item::PUBLIC,
397                         'global'        => true,
398                         'visible'       => 1,
399                         'deleted'       => 0,
400                 ],
401                 [
402                         'uri-id'        => 2,
403                         'parent-uri-id' => 1,
404                         'thr-parent-id' => 1,
405                         'gravity'       => GRAVITY_COMMENT,
406                         'network'       => Protocol::DFRN,
407                         'owner-id'      => 42,
408                         'author-id'     => 42,
409                         'causer-id'     => 42,
410                         'vid'           => 8,
411                         'private'       => Item::PUBLIC,
412                         'global'        => true,
413                         'visible'       => 1,
414                         'deleted'       => 0,
415                 ],
416                 [
417                         'uri-id'        => 3,
418                         'parent-uri-id' => 3,
419                         'thr-parent-id' => 3,
420                         'gravity'       => GRAVITY_PARENT,
421                         'network'       => Protocol::DFRN,
422                         'owner-id'      => 42,
423                         'author-id'     => 43,
424                         'causer-id'     => 43,
425                         'vid'           => 8,
426                         'private'       => Item::PUBLIC,
427                         'global'        => true,
428                         'visible'       => 1,
429                         'deleted'       => 0,
430                 ],
431                 [
432                         'uri-id'        => 4,
433                         'parent-uri-id' => 1,
434                         'thr-parent-id' => 1,
435                         'gravity'       => GRAVITY_COMMENT,
436                         'network'       => Protocol::DFRN,
437                         'owner-id'      => 42,
438                         'author-id'     => 44,
439                         'causer-id'     => 44,
440                         'vid'           => 8,
441                         'private'       => Item::PUBLIC,
442                         'global'        => true,
443                         'visible'       => 1,
444                         'deleted'       => 0,
445                 ],
446                 [
447                         'uri-id'        => 5,
448                         'parent-uri-id' => 1,
449                         'thr-parent-id' => 1,
450                         'gravity'       => GRAVITY_COMMENT,
451                         'network'       => Protocol::DFRN,
452                         'owner-id'      => 42,
453                         'author-id'     => 42,
454                         'causer-id'     => 42,
455                         'vid'           => 8,
456                         'private'       => Item::PUBLIC,
457                         'global'        => true,
458                         'visible'       => 1,
459                         'deleted'       => 0,
460                 ],
461                 [
462                         'uri-id'        => 6,
463                         'parent-uri-id' => 6,
464                         'thr-parent-id' => 6,
465                         'gravity'       => GRAVITY_PARENT,
466                         'network'       => Protocol::DFRN,
467                         'owner-id'      => 42,
468                         'author-id'     => 44,
469                         'causer-id'     => 44,
470                         'vid'           => 8,
471                         'private'       => Item::PUBLIC,
472                         'global'        => true,
473                         'visible'       => 1,
474                         'deleted'       => 0,
475                 ],
476                 [
477                         'uri-id'        => 7,
478                         'parent-uri-id' => 7,
479                         'thr-parent-id' => 7,
480                         'gravity'       => GRAVITY_PARENT,
481                         'network'       => Protocol::DFRN,
482                         'owner-id'      => 42,
483                         'author-id'     => 44,
484                         'causer-id'     => 44,
485                         'vid'           => 8,
486                         'private'       => Item::PUBLIC,
487                         'global'        => true,
488                         'visible'       => 1,
489                         'deleted'       => 0,
490                 ],
491         ],
492         'post-user' => [
493                 [
494                         'id'            => 1,
495                         'uri-id'        => 1,
496                         'visible'       => 1,
497                         'contact-id'    => 42,
498                         'author-id'     => 42,
499                         'owner-id'      => 42,
500                         'causer-id'     => 42,
501                         'uid'           => 42,
502                         'vid'           => 8,
503                         'unseen'        => 1,
504                         'parent-uri-id' => 1,
505                         'thr-parent-id' => 1,
506                         'private'       => Item::PUBLIC,
507                         'global'        => true,
508                         'gravity'       => GRAVITY_PARENT,
509                         'network'       => Protocol::DFRN,
510                         'wall'          => 1,
511                         'origin'        => 1,
512                 ],
513                 [
514                         'id'            => 2,
515                         'uri-id'        => 2,
516                         'uid'           => 42,
517                         'contact-id'    => 42,
518                         'unseen'        => 0,
519                         'origin'        => 1,
520                         'parent-uri-id' => 1,
521                         'thr-parent-id' => 1,
522                         'gravity'       => GRAVITY_COMMENT,
523                         'network'       => Protocol::DFRN,
524                         'owner-id'      => 42,
525                         'author-id'     => 42,
526                         'causer-id'     => 42,
527                         'vid'           => 8,
528                         'private'       => Item::PUBLIC,
529                         'global'        => true,
530                         'visible'       => 1,
531                         'deleted'       => 0,
532                         'wall'          => 1,
533                 ],
534                 [
535                         'id'            => 3,
536                         'uri-id'        => 3,
537                         'uid'           => 42,
538                         'contact-id'    => 43,
539                         'unseen'        => 0,
540                         'origin'        => 1,
541                         'parent-uri-id' => 3,
542                         'thr-parent-id' => 3,
543                         'gravity'       => GRAVITY_PARENT,
544                         'network'       => Protocol::DFRN,
545                         'owner-id'      => 42,
546                         'author-id'     => 43,
547                         'causer-id'     => 43,
548                         'vid'           => 8,
549                         'private'       => Item::PUBLIC,
550                         'global'        => true,
551                         'visible'       => 1,
552                         'deleted'       => 0,
553                         'wall'          => 1,
554                 ],
555                 [
556                         'id'            => 4,
557                         'uri-id'        => 4,
558                         'uid'           => 42,
559                         'contact-id'    => 44,
560                         'unseen'        => 0,
561                         'origin'        => 1,
562                         'parent-uri-id' => 1,
563                         'thr-parent-id' => 1,
564                         'gravity'       => GRAVITY_COMMENT,
565                         'network'       => Protocol::DFRN,
566                         'owner-id'      => 42,
567                         'author-id'     => 44,
568                         'causer-id'     => 44,
569                         'vid'           => 8,
570                         'private'       => Item::PUBLIC,
571                         'global'        => true,
572                         'visible'       => 1,
573                         'deleted'       => 0,
574                         'wall'          => 1,
575                 ],
576                 [
577                         'id'            => 5,
578                         'uri-id'        => 5,
579                         'uid'           => 42,
580                         'contact-id'    => 42,
581                         'unseen'        => 0,
582                         'origin'        => 1,
583                         'parent-uri-id' => 1,
584                         'thr-parent-id' => 1,
585                         'gravity'       => GRAVITY_COMMENT,
586                         'network'       => Protocol::DFRN,
587                         'owner-id'      => 42,
588                         'author-id'     => 42,
589                         'causer-id'     => 42,
590                         'vid'           => 8,
591                         'private'       => Item::PUBLIC,
592                         'global'        => true,
593                         'visible'       => 1,
594                         'deleted'       => 0,
595                         'wall'          => 1,
596                 ],
597                 [
598                         'id'            => 6,
599                         'uri-id'        => 6,
600                         'uid'           => 42,
601                         'contact-id'    => 44,
602                         'unseen'        => 0,
603                         'origin'        => 1,
604                         'parent-uri-id' => 6,
605                         'thr-parent-id' => 6,
606                         'gravity'       => GRAVITY_PARENT,
607                         'network'       => Protocol::DFRN,
608                         'owner-id'      => 42,
609                         'author-id'     => 44,
610                         'causer-id'     => 44,
611                         'vid'           => 8,
612                         'private'       => Item::PUBLIC,
613                         'global'        => true,
614                         'visible'       => 1,
615                         'deleted'       => 0,
616                         'wall'          => 1,
617                 ],
618                 [
619                         'id'            => 7,
620                         'uri-id'        => 1,
621                         'uid'           => 0,
622                         'contact-id'    => 42,
623                         'unseen'        => 1,
624                         'origin'        => 0,
625                         'parent-uri-id' => 1,
626                         'thr-parent-id' => 1,
627                         'gravity'       => GRAVITY_PARENT,
628                         'network'       => Protocol::DFRN,
629                         'owner-id'      => 42,
630                         'author-id'     => 42,
631                         'causer-id'     => 42,
632                         'vid'           => 8,
633                         'private'       => Item::PUBLIC,
634                         'global'        => true,
635                         'visible'       => 1,
636                         'deleted'       => 0,
637                         'wall'          => 0,
638                 ],
639                 [
640                         'id'            => 8,
641                         'uri-id'        => 2,
642                         'uid'           => 0,
643                         'contact-id'    => 42,
644                         'unseen'        => 0,
645                         'origin'        => 0,
646                         'parent-uri-id' => 1,
647                         'thr-parent-id' => 1,
648                         'gravity'       => GRAVITY_COMMENT,
649                         'network'       => Protocol::DFRN,
650                         'owner-id'      => 42,
651                         'author-id'     => 42,
652                         'causer-id'     => 42,
653                         'vid'           => 8,
654                         'private'       => Item::PUBLIC,
655                         'global'        => true,
656                         'visible'       => 1,
657                         'deleted'       => 0,
658                         'wall'          => 0,
659                 ],
660                 [
661                         'id'            => 9,
662                         'uri-id'        => 3,
663                         'uid'           => 0,
664                         'contact-id'    => 43,
665                         'unseen'        => 0,
666                         'origin'        => 0,
667                         'parent-uri-id' => 3,
668                         'thr-parent-id' => 3,
669                         'gravity'       => GRAVITY_PARENT,
670                         'network'       => Protocol::DFRN,
671                         'owner-id'      => 42,
672                         'author-id'     => 43,
673                         'causer-id'     => 43,
674                         'vid'           => 8,
675                         'private'       => Item::PUBLIC,
676                         'global'        => true,
677                         'visible'       => 1,
678                         'deleted'       => 0,
679                         'wall'          => 0,
680                 ],
681                 [
682                         'id'            => 10,
683                         'uri-id'        => 4,
684                         'uid'           => 0,
685                         'contact-id'    => 44,
686                         'unseen'        => 0,
687                         'origin'        => 0,
688                         'parent-uri-id' => 1,
689                         'thr-parent-id' => 1,
690                         'gravity'       => GRAVITY_COMMENT,
691                         'network'       => Protocol::DFRN,
692                         'owner-id'      => 42,
693                         'author-id'     => 44,
694                         'causer-id'     => 44,
695                         'vid'           => 8,
696                         'private'       => Item::PUBLIC,
697                         'global'        => true,
698                         'visible'       => 1,
699                         'deleted'       => 0,
700                         'wall'          => 0,
701                 ],
702                 [
703                         'id'            => 11,
704                         'uri-id'        => 5,
705                         'uid'           => 0,
706                         'contact-id'    => 42,
707                         'unseen'        => 0,
708                         'origin'        => 0,
709                         'parent-uri-id' => 1,
710                         'thr-parent-id' => 1,
711                         'gravity'       => GRAVITY_COMMENT,
712                         'network'       => Protocol::DFRN,
713                         'owner-id'      => 42,
714                         'author-id'     => 42,
715                         'causer-id'     => 42,
716                         'vid'           => 8,
717                         'private'       => Item::PUBLIC,
718                         'global'        => true,
719                         'visible'       => 1,
720                         'deleted'       => 0,
721                         'wall'          => 0,
722                 ],
723                 [
724                         'id'            => 12,
725                         'uri-id'        => 6,
726                         'visible'       => 1,
727                         'contact-id'    => 44,
728                         'author-id'     => 44,
729                         'owner-id'      => 42,
730                         'causer-id'     => 44,
731                         'uid'           => 0,
732                         'vid'           => 8,
733                         'unseen'        => 0,
734                         'parent-uri-id' => 6,
735                         'thr-parent-id' => 6,
736                         'private'       => Item::PUBLIC,
737                         'global'        => true,
738                         'gravity'       => GRAVITY_PARENT,
739                         'network'       => Protocol::DFRN,
740                         'origin'        => 0,
741                         'deleted'       => 0,
742                         'wall'          => 0,
743                 ],
744                 [
745                         'id'            => 13,
746                         'uri-id'        => 7,
747                         'visible'       => 1,
748                         'contact-id'    => 44,
749                         'author-id'     => 44,
750                         'owner-id'      => 42,
751                         'causer-id'     => 44,
752                         'uid'           => 0,
753                         'vid'           => 8,
754                         'unseen'        => 0,
755                         'parent-uri-id' => 7,
756                         'thr-parent-id' => 7,
757                         'private'       => Item::PUBLIC,
758                         'global'        => true,
759                         'gravity'       => GRAVITY_PARENT,
760                         'network'       => Protocol::DFRN,
761                         'origin'        => 0,
762                         'deleted'       => 0,
763                         'wall'          => 0,
764                 ],
765         ],
766         'post-thread' => [
767                 [
768                         'uri-id'    => 1,
769                         'author-id' => 42,
770                         'owner-id'  => 42,
771                         'causer-id' => 42,
772                         'network'   => Protocol::DFRN,
773                 ],
774                 [
775                         'uri-id'    => 3,
776                         'author-id' => 43,
777                         'owner-id'  => 43,
778                         'causer-id' => 43,
779                         'network'   => Protocol::DFRN,
780                 ],
781                 [
782                         'uri-id'    => 6,
783                         'author-id' => 44,
784                         'owner-id'  => 44,
785                         'causer-id' => 44,
786                         'network'   => Protocol::DFRN,
787                 ],
788                 [
789                         'uri-id'    => 7,
790                         'author-id' => 44,
791                         'owner-id'  => 44,
792                         'causer-id' => 44,
793                         'network'   => Protocol::DFRN,
794                 ],
795         ],
796         'post-thread-user' => [
797                 [
798                         'uri-id'       => 1,
799                         'uid'          => 42,
800                         'wall'         => 1,
801                         'post-user-id' => 1,
802                         'author-id'    => 42,
803                         'owner-id'     => 42,
804                         'causer-id'    => 42,
805                         'contact-id'   => 42,
806                         'network'      => Protocol::DFRN,
807                         'starred'      => 1,
808                         'origin'       => 1,
809                 ],
810                 [
811                         'uri-id'       => 3,
812                         'uid'          => 42,
813                         'wall'         => 1,
814                         'post-user-id' => 3,
815                         'author-id'    => 43,
816                         'owner-id'     => 43,
817                         'causer-id'    => 43,
818                         'contact-id'   => 43,
819                         'network'      => Protocol::DFRN,
820                         'starred'      => 0,
821                         'origin'       => 1,
822                 ],
823                 [
824                         'uri-id'       => 6,
825                         'uid'          => 42,
826                         'wall'         => 1,
827                         'post-user-id' => 6,
828                         'author-id'    => 44,
829                         'owner-id'     => 44,
830                         'causer-id'    => 44,
831                         'contact-id'   => 44,
832                         'network'      => Protocol::DFRN,
833                         'starred'      => 0,
834                         'origin'       => 1,
835                 ],
836                 [
837                         'uri-id'       => 1,
838                         'uid'          => 0,
839                         'wall'         => 0,
840                         'post-user-id' => 7,
841                         'author-id'    => 42,
842                         'owner-id'     => 42,
843                         'causer-id'    => 42,
844                         'contact-id'   => 42,
845                         'network'      => Protocol::DFRN,
846                         'starred'      => 0,
847                         'origin'       => 0,
848                 ],
849                 [
850                         'uri-id'       => 3,
851                         'uid'          => 0,
852                         'wall'         => 0,
853                         'post-user-id' => 9,
854                         'author-id'    => 43,
855                         'owner-id'     => 43,
856                         'causer-id'    => 43,
857                         'contact-id'   => 43,
858                         'network'      => Protocol::DFRN,
859                         'starred'      => 0,
860                         'origin'       => 0,
861                 ],
862                 [
863                         'uri-id'       => 6,
864                         'uid'          => 0,
865                         'wall'         => 0,
866                         'post-user-id' => 12,
867                         'author-id'    => 44,
868                         'owner-id'     => 44,
869                         'causer-id'    => 44,
870                         'contact-id'   => 44,
871                         'network'      => Protocol::DFRN,
872                         'starred'      => 0,
873                         'origin'       => 0,
874                 ],
875                 [
876                         'uri-id'       => 7,
877                         'uid'          => 42,
878                         'wall'         => 1,
879                         'post-user-id' => 7,
880                         'author-id'    => 44,
881                         'owner-id'     => 44,
882                         'causer-id'    => 44,
883                         'contact-id'   => 44,
884                         'network'      => Protocol::DFRN,
885                         'starred'      => 0,
886                         'origin'       => 1,
887                 ],
888                 [
889                         'uri-id'       => 7,
890                         'uid'          => 0,
891                         'wall'         => 0,
892                         'post-user-id' => 12,
893                         'author-id'    => 44,
894                         'owner-id'     => 44,
895                         'causer-id'    => 44,
896                         'contact-id'   => 44,
897                         'network'      => Protocol::DFRN,
898                         'starred'      => 0,
899                         'origin'       => 0,
900                 ],
901         ],
902         'notify' => [
903                 [
904                         'id'         => 1,
905                         'type'       => 8,
906                         'name'       => 'Friend contact',
907                         'url'        => 'http://localhost/profile/friendcontact',
908                         'photo'      => 'http://localhost/',
909                         'date'       => '2020-01-01 12:12:02',
910                         'msg'        => 'A test reply from an item',
911                         'uid'        => 42,
912                         'link'       => 'http://localhost/display/1',
913                         'iid'        => 4,
914                         'seen'       => 0,
915                         'verb'       => \Friendica\Protocol\Activity::POST,
916                         'otype'      => Notification\ObjectType::ITEM,
917                         'name_cache' => 'Friend contact',
918                         'msg_cache'  => 'A test reply from an item',
919                 ],
920         ],
921         'profile' => [
922                 [
923                         'id'  => 1,
924                         'uid' => 42,
925                 ],
926         ],
927         'group' => [
928                 [
929                         'id'      => 1,
930                         'uid'     => 42,
931                         'visible' => 1,
932                         'name'    => 'Visible list',
933                 ],
934                 [
935                         'id'      => 2,
936                         'uid'     => 42,
937                         'visible' => 0,
938                         'name'    => 'Private list',
939                 ],
940         ],
941         'group_member' => [
942                 [
943                         'id' => 1,
944                         'gid' => 1,
945                         'contact-id' => 42,
946                 ],
947                 [
948                         'id' => 2,
949                         'gid' => 1,
950                         'contact-id' => 42,
951                 ],
952                 [
953                         'id' => 3,
954                         'gid' => 2,
955                         'contact-id' => 43,
956                 ],
957         ],
958         'search' => [
959                 [
960                         'id'   => 1,
961                         'term' => 'Saved search',
962                         'uid'  => 42,
963                 ],
964         ],
965 ];