]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.fixture.php
Merge pull request #13785 from foss-/patch-11
[friendica.git] / tests / datasets / api.fixture.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2024, 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                         'url' => 'https://friendica.local',
41                         'nurl' => 'http://friendica.local',
42                         'register_policy' => 0,
43                         'registered-users' => 0,
44                         'network' => 'unkn',
45                 ],
46         ],
47         // Base test config to avoid notice messages
48         'user' => [
49                 [
50                         'uid'      => 42,
51                         'username' => 'Test user',
52                         'nickname' => 'selfcontact',
53                         'verified' => 1,
54                         '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-----",
55                         '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',
56                         'theme'    => 'frio',
57                 ],
58         ],
59         'item-uri' => [
60                 [
61                         'id'   => 1,
62                         'uri'  => '1',
63                         'guid' => '1',
64                 ],
65                 [
66                         'id'   => 2,
67                         'uri'  => '2',
68                         'guid' => '2',
69                 ],
70                 [
71                         'id'   => 3,
72                         'uri'  => '3',
73                         'guid' => '3',
74                 ],
75                 [
76                         'id'   => 4,
77                         'uri'  => '4',
78                         'guid' => '4',
79                 ],
80                 [
81                         'id'   => 5,
82                         'uri'  => '5',
83                         'guid' => '5',
84                 ],
85                 [
86                         'id'   => 6,
87                         'uri'  => '6',
88                         'guid' => '6',
89                 ],
90                 [
91                         'id'   => 7,
92                         'uri'  => '7',
93                         'guid' => '7',
94                 ],
95                 [
96                         'id'   => 42,
97                         'uri'  => 'http://localhost/profile/selfcontact',
98                         'guid' => '42',
99                 ],
100                 [
101                         'id'   => 43,
102                         'uri'  => 'http://localhost/profile/othercontact',
103                         'guid' => '43',
104                 ],
105                 [
106                         'id'   => 44,
107                         'uri'  => 'http://localhost/profile/friendcontact',
108                         'guid' => '44',
109                 ],
110                 [
111                         'id'   => 46,
112                         'uri'  => 'http://localhost/profile/mutualcontact',
113                         'guid' => '46',
114                 ],
115                 [
116                         'id'   => 100,
117                         'uri'  => 'https://friendica.local/posts/100',
118                         'guid' => '100',
119                 ],
120         ],
121         'contact' => [
122                 [
123                         'id'       => 42,
124                         'uid'      => 42,
125                         'uri-id'   => 42,
126                         'name'     => 'Self contact',
127                         'nick'     => 'selfcontact',
128                         'self'     => 1,
129                         'nurl'     => 'http://localhost/profile/selfcontact',
130                         'url'      => 'http://localhost/profile/selfcontact',
131                         'notify'   => 'http://localhost/friendica/inbox',
132                         'about'    => 'User used in tests',
133                         '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-----",
134                         'pubkey'   => "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVqxF9kIgtgRL0+q+jTi578FA1\nr1+crEmlYc0pdxcbmmrhjuRcrK1gX3r0mnP25fkHzG+6CAjgbDBRFM1/RXBCyp/K\nHVks7eQ4yr4MxTRlsxo5qf2onbyNzM7Q+LZhFhe/yIoGN/fuEjlqBE98IfPOrUjs\nQPX240vGNXIkfLiAWwIDAQAB\n-----END PUBLIC KEY-----",
135                         'pending'  => 0,
136                         'blocked'  => 0,
137                         'rel'      => Contact::FOLLOWER,
138                         'network'  => Protocol::DFRN,
139                         'location' => 'DFRN',
140                 ],
141                 // Having the same name and nick allows us to test
142                 // the fallback to api_get_nick() in api_get_user()
143                 [
144                         'id'       => 43,
145                         'uid'      => 0,
146                         'uri-id'   => 43,
147                         'name'     => 'othercontact',
148                         'nick'     => 'othercontact',
149                         'self'     => 0,
150                         'nurl'     => 'http://localhost/profile/othercontact',
151                         'url'      => 'http://localhost/profile/othercontact',
152                         'notify'   => 'http://localhost/friendica/inbox',
153                         'pending'  => 0,
154                         'blocked'  => 0,
155                         'rel'      => Contact::NOTHING,
156                         'network'  => Protocol::DFRN,
157                         'location' => 'DFRN',
158                 ],
159                 [
160                         'id'       => 44,
161                         'uid'      => 42,
162                         'uri-id'   => 44,
163                         'name'     => 'Friend contact',
164                         'nick'     => 'friendcontact',
165                         'self'     => 0,
166                         'nurl'     => 'http://localhost/profile/friendcontact',
167                         'url'      => 'http://localhost/profile/friendcontact',
168                         'notify'   => 'http://localhost/friendica/inbox',
169                         'pending'  => 0,
170                         'blocked'  => 0,
171                         'rel'      => Contact::SHARING,
172                         'network'  => Protocol::DFRN,
173                         'location' => 'DFRN',
174                 ],
175                 [
176                         'id'       => 45,
177                         'uid'      => 0,
178                         'uri-id'   => 44,
179                         'name'     => 'Friend contact',
180                         'nick'     => 'friendcontact',
181                         'self'     => 0,
182                         'nurl'     => 'http://localhost/profile/friendcontact',
183                         'url'      => 'http://localhost/profile/friendcontact',
184                         'notify'   => 'http://localhost/friendica/inbox',
185                         'pending'  => 0,
186                         'blocked'  => 0,
187                         'rel'      => Contact::SHARING,
188                         'network'  => Protocol::DFRN,
189                         'location' => 'DFRN',
190                 ],
191                 [
192                         'id'       => 46,
193                         'uid'      => 42,
194                         'uri-id'   => 46,
195                         'name'     => 'Mutual contact',
196                         'nick'     => 'mutualcontact',
197                         'self'     => 0,
198                         'nurl'     => 'http://localhost/profile/mutualcontact',
199                         'url'      => 'http://localhost/profile/mutualcontact',
200                         'notify'   => 'http://localhost/friendica/inbox',
201                         'pending'  => 0,
202                         'blocked'  => 0,
203                         'rel'      => Contact::FRIEND,
204                         'network'  => Protocol::DFRN,
205                         'location' => 'DFRN',
206                 ],
207                 [
208                         'id'       => 47,
209                         'uid'      => 0,
210                         'uri-id'   => 46,
211                         'name'     => 'Mutual contact',
212                         'nick'     => 'mutualcontact',
213                         'self'     => 0,
214                         'nurl'     => 'http://localhost/profile/mutualcontact',
215                         'url'      => 'http://localhost/profile/mutualcontact',
216                         'notify'   => 'http://localhost/friendica/inbox',
217                         'pending'  => 0,
218                         'blocked'  => 0,
219                         'rel'      => Contact::SHARING,
220                         'network'  => Protocol::DFRN,
221                         'location' => 'DFRN',
222                 ],
223                 [
224                         'id'       => 48,
225                         'uid'      => 0,
226                         'uri-id'   => 42,
227                         'name'     => 'Self contact',
228                         'nick'     => 'selfcontact',
229                         'self'     => 0,
230                         'nurl'     => 'http://localhost/profile/selfcontact',
231                         'url'      => 'http://localhost/profile/selfcontact',
232                         'notify'   => 'http://localhost/friendica/inbox',
233                         'about'    => 'User used in tests',
234                         'pending'  => 0,
235                         'blocked'  => 0,
236                         'rel'      => Contact::FOLLOWER,
237                         'network'  => Protocol::DFRN,
238                         'location' => 'DFRN',
239                 ],
240         ],
241         'apcontact' => [
242                 [
243                         "url"              => "http://localhost/profile/selfcontact",
244                         "uri-id"           => 1,
245                         "uuid"             => "42",
246                         "type"             => "Person",
247                         "following"        => "http://localhost/following/selfcontact",
248                         "followers"        => "http://localhost/followers/selfcontact",
249                         "inbox"            => "http://localhost/inbox/selfcontact",
250                         "outbox"           => "http://localhost/outbox/selfcontact",
251                         "sharedinbox"      => "http://localhost/inbox",
252                         "manually-approve" => 1,
253                         "discoverable"     => 0,
254                         "nick"             => "selfcontact",
255                         "name"             => "Self contact",
256                         "about"            => "User used in tests",
257                         "xmpp"             => null,
258                         "matrix"           => null,
259                         "photo"            => "http://localhost/photo/profile/admin.jpeg",
260                         "header"           => null,
261                         "addr"             => "selfcontact@localhost",
262                         "alias"            => null,
263                         "pubkey"           => "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVqxF9kIgtgRL0+q+jTi578FA1\nr1+crEmlYc0pdxcbmmrhjuRcrK1gX3r0mnP25fkHzG+6CAjgbDBRFM1/RXBCyp/K\nHVks7eQ4yr4MxTRlsxo5qf2onbyNzM7Q+LZhFhe/yIoGN/fuEjlqBE98IfPOrUjs\nQPX240vGNXIkfLiAWwIDAQAB\n-----END PUBLIC KEY-----",
264                         "subscribe"        => "/follow?url={uri}",
265                         "baseurl"          => null,
266                         "gsid"             => null,
267                         "generator"        => "Friendica 'Siberian Iris' 2021.12-dev-1443",
268                         "following_count"  => 0,
269                         "followers_count"  => 0,
270                         "statuses_count"   => 0,
271                         "updated"          => "2021-11-19 19:17:59",
272                 ],
273         ],
274         'verb' => [
275                 [
276                         'id'   => 0,
277                         'name' => '',
278                 ],
279                 [
280                         'id'   => 1,
281                         'name' => 'http://activitystrea.ms/schema/1.0/like',
282                 ],
283                 [
284                         'id'   => 2,
285                         'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike',
286                 ],
287                 [
288                         'id'   => 3,
289                         'name' => 'http://purl.org/zot/activity/attendyes',
290                 ],
291                 [
292                         'id'   => 4,
293                         'name' => 'http://purl.org/zot/activity/attendno',
294                 ],
295                 [
296                         'id'   => 5,
297                         'name' => 'http://purl.org/zot/activity/attendmaybe',
298                 ],
299                 [
300                         'id'   => 6,
301                         'name' => 'http://activitystrea.ms/schema/1.0/follow',
302                 ],
303                 [
304                         'id'   => 7,
305                         'name' => 'https://www.w3.org/ns/activitystreams#Announce',
306                 ],
307                 [
308                         'id'   => 8,
309                         'name' => 'http://activitystrea.ms/schema/1.0/post',
310                 ],
311         ],
312         'post-content' => [
313                 [
314                         'uri-id' => 1,
315                         'body'   => 'Parent status',
316                         'plink'  => 'http://localhost/display/1',
317                 ],
318                 [
319                         'uri-id' => 2,
320                         'body'   => 'Reply',
321                         'plink'  => 'http://localhost/display/2',
322                 ],
323                 [
324                         'uri-id' => 3,
325                         'body'   => 'Other user status',
326                         'plink'  => 'http://localhost/display/3',
327                 ],
328                 [
329                         'uri-id' => 4,
330                         'body'   => 'Friend user reply',
331                         'plink'  => 'http://localhost/display/4',
332                 ],
333                 [
334                         'uri-id' => 5,
335                         'body'   => '[share]Shared status[/share]',
336                         'plink'  => 'http://localhost/display/5',
337                 ],
338                 [
339                         'uri-id' => 6,
340                         'body'   => 'Friend user status',
341                         'plink'  => 'http://localhost/display/6',
342                 ],
343                 [
344                         'uri-id' => 7,
345                         'title'  => 'item_title',
346                         'body'   => 'perspiciatis impedit voluptatem quis molestiae ea qui ' .
347                                                 'reiciendis dolorum aut ducimus sunt consequatur inventore dolor ' .
348                                                 'officiis pariatur doloremque nemo culpa aut quidem qui dolore ' .
349                                                 'laudantium atque commodi alias voluptatem non possimus aperiam ' .
350                                                 'ipsum rerum consequuntur aut amet fugit quia aliquid praesentium ' .
351                                                 'repellendus quibusdam et et inventore mollitia rerum sit autem ' .
352                                                 'pariatur maiores ipsum accusantium perferendis vel sit possimus ' .
353                                                 'veritatis nihil distinctio qui eum repellat officia illum quos ' .
354                                                 'impedit quam iste esse unde qui suscipit aut facilis ut inventore ' .
355                                                 'omnis exercitationem quo magnam consequatur maxime aut illum ' .
356                                                 'soluta quaerat natus unde aspernatur et sed beatae nihil ullam ' .
357                                                 'temporibus corporis ratione blanditiis perspiciatis impedit ' .
358                                                 'voluptatem quis molestiae ea qui reiciendis dolorum aut ducimus ' .
359                                                 'sunt consequatur inventore dolor officiis pariatur doloremque ' .
360                                                 'nemo culpa aut quidem qui dolore laudantium atque commodi alias ' .
361                                                 'voluptatem non possimus aperiam ipsum rerum consequuntur aut ' .
362                                                 'amet fugit quia aliquid praesentium repellendus quibusdam et et ' .
363                                                 'inventore mollitia rerum sit autem pariatur maiores ipsum accusantium ' .
364                                                 'perferendis vel sit possimus veritatis nihil distinctio qui eum ' .
365                                                 'repellat officia illum quos impedit quam iste esse unde qui ' .
366                                                 'suscipit aut facilis ut inventore omnis exercitationem quo magnam ' .
367                                                 'consequatur maxime aut illum soluta quaerat natus unde aspernatur ' .
368                                                 'et sed beatae nihil ullam temporibus corporis ratione blanditiis',
369                         'plink'  => 'http://localhost/display/6',
370                 ],
371                 [
372                         'uri-id' => 100,
373                         'title'  => 'item_title',
374                         'body'   => ':like ~friendica no [code]:dislike[/code] :-p :-[ :hugging face: <3 :smiley heart 333: â½•',
375                         'plink'  => 'https://friendica.local/post/100',
376                 ],
377         ],
378         'post' => [
379                 [
380                         'uri-id'        => 1,
381                         'parent-uri-id' => 1,
382                         'thr-parent-id' => 1,
383                         'gravity'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::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'       => Item::GRAVITY_PARENT,
753                         'network'       => Protocol::DFRN,
754                         'origin'        => 0,
755                         'deleted'       => 0,
756                         'wall'          => 0,
757                 ],
758                 // An emoji post
759                 [
760                         'id'            => 14,
761                         'uri-id'        => 100,
762                         'visible'       => 1,
763                         'contact-id'    => 44,
764                         'author-id'     => 44,
765                         'owner-id'      => 42,
766                         'causer-id'     => 44,
767                         'uid'           => 0,
768                         'vid'           => 8,
769                         'unseen'        => 0,
770                         'parent-uri-id' => 7,
771                         'thr-parent-id' => 7,
772                         'private'       => Item::PUBLIC,
773                         'global'        => true,
774                         'gravity'       => Item::GRAVITY_PARENT,
775                         'network'       => Protocol::DFRN,
776                         'origin'        => 0,
777                         'deleted'       => 0,
778                         'wall'          => 0,
779                 ],
780         ],
781         'post-thread' => [
782                 [
783                         'uri-id'    => 1,
784                         'author-id' => 42,
785                         'owner-id'  => 42,
786                         'causer-id' => 42,
787                         'network'   => Protocol::DFRN,
788                 ],
789                 [
790                         'uri-id'    => 3,
791                         'author-id' => 43,
792                         'owner-id'  => 43,
793                         'causer-id' => 43,
794                         'network'   => Protocol::DFRN,
795                 ],
796                 [
797                         'uri-id'    => 6,
798                         'author-id' => 44,
799                         'owner-id'  => 44,
800                         'causer-id' => 44,
801                         'network'   => Protocol::DFRN,
802                 ],
803                 [
804                         'uri-id'    => 7,
805                         'author-id' => 44,
806                         'owner-id'  => 44,
807                         'causer-id' => 44,
808                         'network'   => Protocol::DFRN,
809                 ],
810         ],
811         'post-thread-user' => [
812                 [
813                         'uri-id'       => 1,
814                         'uid'          => 42,
815                         'wall'         => 1,
816                         'post-user-id' => 1,
817                         'author-id'    => 42,
818                         'owner-id'     => 42,
819                         'causer-id'    => 42,
820                         'contact-id'   => 42,
821                         'network'      => Protocol::DFRN,
822                         'starred'      => 1,
823                         'origin'       => 1,
824                 ],
825                 [
826                         'uri-id'       => 3,
827                         'uid'          => 42,
828                         'wall'         => 1,
829                         'post-user-id' => 3,
830                         'author-id'    => 43,
831                         'owner-id'     => 43,
832                         'causer-id'    => 43,
833                         'contact-id'   => 43,
834                         'network'      => Protocol::DFRN,
835                         'starred'      => 0,
836                         'origin'       => 1,
837                 ],
838                 [
839                         'uri-id'       => 6,
840                         'uid'          => 42,
841                         'wall'         => 1,
842                         'post-user-id' => 6,
843                         'author-id'    => 44,
844                         'owner-id'     => 44,
845                         'causer-id'    => 44,
846                         'contact-id'   => 44,
847                         'network'      => Protocol::DFRN,
848                         'starred'      => 0,
849                         'origin'       => 1,
850                 ],
851                 [
852                         'uri-id'       => 1,
853                         'uid'          => 0,
854                         'wall'         => 0,
855                         'post-user-id' => 7,
856                         'author-id'    => 42,
857                         'owner-id'     => 42,
858                         'causer-id'    => 42,
859                         'contact-id'   => 42,
860                         'network'      => Protocol::DFRN,
861                         'starred'      => 0,
862                         'origin'       => 0,
863                 ],
864                 [
865                         'uri-id'       => 3,
866                         'uid'          => 0,
867                         'wall'         => 0,
868                         'post-user-id' => 9,
869                         'author-id'    => 43,
870                         'owner-id'     => 43,
871                         'causer-id'    => 43,
872                         'contact-id'   => 43,
873                         'network'      => Protocol::DFRN,
874                         'starred'      => 0,
875                         'origin'       => 0,
876                 ],
877                 [
878                         'uri-id'       => 6,
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                         'uri-id'       => 7,
892                         'uid'          => 42,
893                         'wall'         => 1,
894                         'post-user-id' => 7,
895                         'author-id'    => 44,
896                         'owner-id'     => 44,
897                         'causer-id'    => 44,
898                         'contact-id'   => 44,
899                         'network'      => Protocol::DFRN,
900                         'starred'      => 0,
901                         'origin'       => 1,
902                 ],
903                 [
904                         'uri-id'       => 7,
905                         'uid'          => 0,
906                         'wall'         => 0,
907                         'post-user-id' => 12,
908                         'author-id'    => 44,
909                         'owner-id'     => 44,
910                         'causer-id'    => 44,
911                         'contact-id'   => 44,
912                         'network'      => Protocol::DFRN,
913                         'starred'      => 0,
914                         'origin'       => 0,
915                 ],
916         ],
917         'notify' => [
918                 [
919                         'id'         => 1,
920                         'type'       => 8,
921                         'name'       => 'Friend contact',
922                         'url'        => 'http://localhost/profile/friendcontact',
923                         'photo'      => 'http://localhost/',
924                         'date'       => '2020-01-01 12:12:02',
925                         'msg'        => 'A test reply from an item',
926                         'uid'        => 42,
927                         'link'       => 'http://localhost/display/1',
928                         'iid'        => 4,
929                         'seen'       => 0,
930                         'verb'       => \Friendica\Protocol\Activity::POST,
931                         'otype'      => Notification\ObjectType::ITEM,
932                         'name_cache' => 'Friend contact',
933                         'msg_cache'  => 'A test reply from an item',
934                 ],
935         ],
936         'profile' => [
937                 [
938                         'id'  => 1,
939                         'uid' => 42,
940                 ],
941         ],
942         'group' => [
943                 [
944                         'id'      => 1,
945                         'uid'     => 42,
946                         'visible' => 1,
947                         'name'    => 'Visible list',
948                 ],
949                 [
950                         'id'      => 2,
951                         'uid'     => 42,
952                         'visible' => 0,
953                         'name'    => 'Private list',
954                 ],
955         ],
956         'group_member' => [
957                 [
958                         'id' => 1,
959                         'gid' => 1,
960                         'contact-id' => 42,
961                 ],
962                 [
963                         'id' => 2,
964                         'gid' => 1,
965                         'contact-id' => 42,
966                 ],
967                 [
968                         'id' => 3,
969                         'gid' => 2,
970                         'contact-id' => 43,
971                 ],
972         ],
973         'search' => [
974                 [
975                         'id'   => 1,
976                         'term' => 'Saved search',
977                         'uid'  => 42,
978                 ],
979         ],
980 ];