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/>.
31 // Base test config to avoid notice messages
36 'v' => 'http://localhost',
45 'k' => 'worker_dont_fork',
52 'username' => 'Test user',
53 'nickname' => 'selfcontact',
55 'password' => '$2y$10$DLRNTRmJgKe1cSrFJ5Jb0edCqvXlA9sh/RHdSnfxjbR.04yZRm4Qm',
63 'name' => 'Self contact',
64 'nick' => 'selfcontact',
66 'nurl' => 'http://localhost/profile/selfcontact',
67 'url' => 'http://localhost/profile/selfcontact',
68 'about' => 'User used in tests',
74 // Having the same name and nick allows us to test
75 // the fallback to api_get_nick() in api_get_user()
79 'name' => 'othercontact',
80 'nick' => 'othercontact',
82 'nurl' => 'http://localhost/profile/othercontact',
83 'url' => 'http://localhost/profile/othercontact',
92 'name' => 'Friend contact',
93 'nick' => 'friendcontact',
95 'nurl' => 'http://localhost/profile/friendcontact',
96 'url' => 'http://localhost/profile/friendcontact',
105 'name' => 'Friend contact',
106 'nick' => 'friendcontact',
108 'nurl' => 'http://localhost/profile/friendcontact',
109 'url' => 'http://localhost/profile/friendcontact',
118 'name' => 'Mutual contact',
119 'nick' => 'mutualcontact',
121 'nurl' => 'http://localhost/profile/mutualcontact',
122 'url' => 'http://localhost/profile/mutualcontact',
131 'name' => 'Mutual contact',
132 'nick' => 'mutualcontact',
134 'nurl' => 'http://localhost/profile/mutualcontact',
135 'url' => 'http://localhost/profile/mutualcontact',
183 'verb' => 'http://activitystrea.ms/schema/1.0/post',
185 'body' => 'Parent status',
187 'author-link' => 'http://localhost/profile/selfcontact',
196 'plink' => 'http://localhost/display/1',
206 'verb' => 'http://activitystrea.ms/schema/1.0/post',
210 'author-link' => 'http://localhost/profile/selfcontact',
215 'plink' => 'http://localhost/display/2',
226 'verb' => 'http://activitystrea.ms/schema/1.0/post',
228 'body' => 'Other user status',
230 'author-link' => 'http://localhost/profile/othercontact',
235 'plink' => 'http://localhost/display/3',
245 'verb' => 'http://activitystrea.ms/schema/1.0/post',
247 'body' => 'Friend user reply',
249 'author-link' => 'http://localhost/profile/othercontact',
254 'plink' => 'http://localhost/display/4',
265 'verb' => 'http://activitystrea.ms/schema/1.0/post',
267 'body' => '[share]Shared status[/share]',
269 'author-link' => 'http://localhost/profile/othercontact',
278 'plink' => 'http://localhost/display/5',
288 'verb' => 'http://activitystrea.ms/schema/1.0/post',
290 'body' => 'Friend user status',
292 'author-link' => 'http://localhost/profile/othercontact',
297 'plink' => 'http://localhost/display/6',
304 'name' => 'Reply to',
305 'url' => 'http://localhost/display/1',
306 'photo' => 'http://localhost/',
307 'date' => '2020-01-01 12:12:02',
308 'msg' => 'A test reply from an item',
310 'link' => 'http://localhost/notification/1',
315 'name_cache' => 'Reply to',
316 'msg_cache' => 'A test reply from an item',
362 'name' => 'Visible list',
368 'name' => 'Private list',
374 'term' => 'Saved search',