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