3 * @copyright Copyright (C) 2020, Friendica
5 * @license GNU AGPL version 3 or any later version
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.
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.
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/>.
22 use Friendica\Model\Notification;
33 // Base test config to avoid notice messages
38 'v' => 'http://localhost',
47 'k' => 'worker_dont_fork',
54 'username' => 'Test user',
55 'nickname' => 'selfcontact',
57 'password' => '$2y$10$DLRNTRmJgKe1cSrFJ5Jb0edCqvXlA9sh/RHdSnfxjbR.04yZRm4Qm',
65 'name' => 'Self contact',
66 'nick' => 'selfcontact',
68 'nurl' => 'http://localhost/profile/selfcontact',
69 'url' => 'http://localhost/profile/selfcontact',
70 'about' => 'User used in tests',
77 // Having the same name and nick allows us to test
78 // the fallback to api_get_nick() in api_get_user()
82 'name' => 'othercontact',
83 'nick' => 'othercontact',
85 'nurl' => 'http://localhost/profile/othercontact',
86 'url' => 'http://localhost/profile/othercontact',
96 'name' => 'Friend contact',
97 'nick' => 'friendcontact',
99 'nurl' => 'http://localhost/profile/friendcontact',
100 'url' => 'http://localhost/profile/friendcontact',
105 'location' => 'DFRN',
110 'name' => 'Friend contact',
111 'nick' => 'friendcontact',
113 'nurl' => 'http://localhost/profile/friendcontact',
114 'url' => 'http://localhost/profile/friendcontact',
119 'location' => 'DFRN',
124 'name' => 'Mutual contact',
125 'nick' => 'mutualcontact',
127 'nurl' => 'http://localhost/profile/mutualcontact',
128 'url' => 'http://localhost/profile/mutualcontact',
133 'location' => 'DFRN',
138 'name' => 'Mutual contact',
139 'nick' => 'mutualcontact',
141 'nurl' => 'http://localhost/profile/mutualcontact',
142 'url' => 'http://localhost/profile/mutualcontact',
147 'location' => 'DFRN',
186 'uri-plink-hash' => '1',
187 'body' => 'Parent status',
188 'plink' => 'http://localhost/display/1',
193 'uri-plink-hash' => '2',
195 'plink' => 'http://localhost/display/2',
200 'uri-plink-hash' => '3',
201 'body' => 'Other user status',
202 'plink' => 'http://localhost/display/3',
207 'uri-plink-hash' => '4',
208 'body' => 'Friend user reply',
209 'plink' => 'http://localhost/display/4',
214 'uri-plink-hash' => '5',
215 'body' => '[share]Shared status[/share]',
216 'plink' => 'http://localhost/display/5',
221 'uri-plink-hash' => '6',
222 'body' => 'Friend user status',
223 'plink' => 'http://localhost/display/6',
287 'verb' => 'http://activitystrea.ms/schema/1.0/post',
290 'parent-uri-id' => 1,
291 'thr-parent-id' => 1,
292 'gravity' => GRAVITY_PARENT,
293 'author-link' => 'http://localhost/profile/selfcontact',
312 'verb' => 'http://activitystrea.ms/schema/1.0/post',
315 'parent-uri-id' => 1,
316 'thr-parent-id' => 1,
317 'gravity' => GRAVITY_COMMENT,
318 'author-link' => 'http://localhost/profile/selfcontact',
333 'verb' => 'http://activitystrea.ms/schema/1.0/post',
336 'parent-uri-id' => 3,
337 'thr-parent-id' => 3,
338 'gravity' => GRAVITY_PARENT,
339 'author-link' => 'http://localhost/profile/othercontact',
354 'verb' => 'http://activitystrea.ms/schema/1.0/post',
356 'body' => 'Friend user reply',
358 'parent-uri-id' => 1,
359 'thr-parent-id' => 1,
360 'gravity' => GRAVITY_COMMENT,
361 'author-link' => 'http://localhost/profile/othercontact',
377 'verb' => 'http://activitystrea.ms/schema/1.0/post',
380 'parent-uri-id' => 1,
381 'thr-parent-id' => 1,
382 'gravity' => GRAVITY_COMMENT,
383 'author-link' => 'http://localhost/profile/othercontact',
402 'verb' => 'http://activitystrea.ms/schema/1.0/post',
405 'parent-uri-id' => 6,
406 'thr-parent-id' => 6,
407 'gravity' => GRAVITY_PARENT,
408 'author-link' => 'http://localhost/profile/othercontact',
419 'name' => 'Reply to',
420 'url' => 'http://localhost/display/1',
421 'photo' => 'http://localhost/',
422 'date' => '2020-01-01 12:12:02',
423 'msg' => 'A test reply from an item',
425 'link' => 'http://localhost/notification/1',
429 'otype' => Notification\ObjectType::ITEM,
430 'name_cache' => 'Reply to',
431 'msg_cache' => 'A test reply from an item',
477 'name' => 'Visible list',
483 'name' => 'Private list',
489 'term' => 'Saved search',