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