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\Notify;
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',
185 'uri-plink-hash' => '1',
186 'body' => 'Parent status',
187 'plink' => 'http://localhost/display/1',
192 'uri-plink-hash' => '2',
194 'plink' => 'http://localhost/display/2',
199 'uri-plink-hash' => '3',
200 'body' => 'Other user status',
201 'plink' => 'http://localhost/display/3',
206 'uri-plink-hash' => '4',
207 'body' => 'Friend user reply',
208 'plink' => 'http://localhost/display/4',
213 'uri-plink-hash' => '5',
214 'body' => '[share]Shared status[/share]',
215 'plink' => 'http://localhost/display/5',
220 'uri-plink-hash' => '6',
221 'body' => 'Friend user status',
222 'plink' => 'http://localhost/display/6',
234 'verb' => 'http://activitystrea.ms/schema/1.0/post',
237 'parent-uri-id' => 1,
238 'thr-parent-id' => 1,
239 'gravity' => GRAVITY_PARENT,
240 'author-link' => 'http://localhost/profile/selfcontact',
259 'verb' => 'http://activitystrea.ms/schema/1.0/post',
262 'parent-uri-id' => 1,
263 'thr-parent-id' => 1,
264 'gravity' => GRAVITY_COMMENT,
265 'author-link' => 'http://localhost/profile/selfcontact',
280 'verb' => 'http://activitystrea.ms/schema/1.0/post',
283 'parent-uri-id' => 3,
284 'thr-parent-id' => 3,
285 'gravity' => GRAVITY_PARENT,
286 'author-link' => 'http://localhost/profile/othercontact',
301 'verb' => 'http://activitystrea.ms/schema/1.0/post',
303 'body' => 'Friend user reply',
305 'parent-uri-id' => 1,
306 'thr-parent-id' => 1,
307 'gravity' => GRAVITY_COMMENT,
308 'author-link' => 'http://localhost/profile/othercontact',
324 'verb' => 'http://activitystrea.ms/schema/1.0/post',
327 'parent-uri-id' => 1,
328 'thr-parent-id' => 1,
329 'gravity' => GRAVITY_COMMENT,
330 'author-link' => 'http://localhost/profile/othercontact',
349 'verb' => 'http://activitystrea.ms/schema/1.0/post',
352 'parent-uri-id' => 6,
353 'thr-parent-id' => 6,
354 'gravity' => GRAVITY_PARENT,
355 'author-link' => 'http://localhost/profile/othercontact',
366 'name' => 'Reply to',
367 'url' => 'http://localhost/display/1',
368 'photo' => 'http://localhost/',
369 'date' => '2020-01-01 12:12:02',
370 'msg' => 'A test reply from an item',
372 'link' => 'http://localhost/notification/1',
376 'otype' => Notify\ObjectType::ITEM,
377 'name_cache' => 'Reply to',
378 'msg_cache' => 'A test reply from an item',
424 'name' => 'Visible list',
430 'name' => 'Private list',
436 'term' => 'Saved search',