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