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',
75 // Having the same name and nick allows us to test
76 // the fallback to api_get_nick() in api_get_user()
80 'name' => 'othercontact',
81 'nick' => 'othercontact',
83 'nurl' => 'http://localhost/profile/othercontact',
84 'url' => 'http://localhost/profile/othercontact',
94 'name' => 'Friend contact',
95 'nick' => 'friendcontact',
97 'nurl' => 'http://localhost/profile/friendcontact',
98 'url' => 'http://localhost/profile/friendcontact',
103 'location' => 'DFRN',
108 'name' => 'Friend contact',
109 'nick' => 'friendcontact',
111 'nurl' => 'http://localhost/profile/friendcontact',
112 'url' => 'http://localhost/profile/friendcontact',
117 'location' => 'DFRN',
122 'name' => 'Mutual contact',
123 'nick' => 'mutualcontact',
125 'nurl' => 'http://localhost/profile/mutualcontact',
126 'url' => 'http://localhost/profile/mutualcontact',
131 'location' => 'DFRN',
136 'name' => 'Mutual contact',
137 'nick' => 'mutualcontact',
139 'nurl' => 'http://localhost/profile/mutualcontact',
140 'url' => 'http://localhost/profile/mutualcontact',
145 'location' => 'DFRN',
189 'verb' => 'http://activitystrea.ms/schema/1.0/post',
191 'body' => 'Parent status',
193 'author-link' => 'http://localhost/profile/selfcontact',
202 'plink' => 'http://localhost/display/1',
212 'verb' => 'http://activitystrea.ms/schema/1.0/post',
216 'author-link' => 'http://localhost/profile/selfcontact',
221 'plink' => 'http://localhost/display/2',
232 'verb' => 'http://activitystrea.ms/schema/1.0/post',
234 'body' => 'Other user status',
236 'author-link' => 'http://localhost/profile/othercontact',
241 'plink' => 'http://localhost/display/3',
251 'verb' => 'http://activitystrea.ms/schema/1.0/post',
253 'body' => 'Friend user reply',
255 'author-link' => 'http://localhost/profile/othercontact',
260 'plink' => 'http://localhost/display/4',
271 'verb' => 'http://activitystrea.ms/schema/1.0/post',
273 'body' => '[share]Shared status[/share]',
275 'author-link' => 'http://localhost/profile/othercontact',
284 'plink' => 'http://localhost/display/5',
294 'verb' => 'http://activitystrea.ms/schema/1.0/post',
296 'body' => 'Friend user status',
298 'author-link' => 'http://localhost/profile/othercontact',
303 'plink' => 'http://localhost/display/6',
310 'name' => 'Reply to',
311 'url' => 'http://localhost/display/1',
312 'photo' => 'http://localhost/',
313 'date' => '2020-01-01 12:12:02',
314 'msg' => 'A test reply from an item',
316 'link' => 'http://localhost/notification/1',
321 'name_cache' => 'Reply to',
322 'msg_cache' => 'A test reply from an item',
368 'name' => 'Visible list',
374 'name' => 'Private list',
380 'term' => 'Saved search',