3 * @copyright Copyright (C) 2010-2021, the Friendica project
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\Core\Protocol;
23 use Friendica\Model\Contact;
29 'username' => 'Test user',
30 'nickname' => 'selfcontact',
32 'password' => '$2y$10$DLRNTRmJgKe1cSrFJ5Jb0edCqvXlA9sh/RHdSnfxjbR.04yZRm4Qm',
39 'uri' => 'http://localhost/profile/selfcontact',
48 'name' => 'Self contact',
49 'nick' => 'selfcontact',
51 'nurl' => 'http://localhost/profile/selfcontact',
52 'url' => 'http://localhost/profile/selfcontact',
53 'about' => 'User used in tests',
56 'rel' => Contact::FOLLOWER,
57 'network' => Protocol::DFRN,
62 // move from data-attribute to storage backend
67 'backend-class' => null,
68 'backend-ref' => 'f0c0d0i2',
69 'data' => 'without class',
71 // move from storage-backend to maybe filesystem backend, skip at database backend
76 'backend-class' => 'Database',
80 // move data if invalid storage
85 'backend-class' => 'invalid!',
86 'backend-ref' => 'unimported',
87 'data' => 'invalid data moved',
89 // @todo Check failing test because of this (never loaded) fixture
93 // 'contact-id' => 42,
94 // 'backend-class' => 'invalid!',
95 // 'backend-ref' => 'unimported',
102 'data' => 'inside database',