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