]> git.mxchange.org Git - friendica.git/blob - tests/datasets/storage/database.fixture.php
- Fixing SystemResource
[friendica.git] / tests / datasets / storage / database.fixture.php
1 <?php
2
3 return [
4         'photo'   => [
5                 // move from data-attribute to storage backend
6                 [
7                         'id'            => 1,
8                         'backend-class' => null,
9                         'backend-ref'   => 'f0c0d0i2',
10                         'data'          => 'without class',
11                 ],
12                 // move from storage-backend to maybe filesystem backend, skip at database backend
13                 [
14                         'id'            => 2,
15                         'backend-class' => 'Database',
16                         'backend-ref'   => 1,
17                         'data'          => '',
18                 ],
19                 // move data if invalid storage
20                 [
21                         'id'            => 3,
22                         'backend-class' => 'invalid!',
23                         'backend-ref'   => 'unimported',
24                         'data'          => 'invalid data moved',
25                 ],
26                 // skip everytime because of invalid storage and no data
27                 [
28                         'id'            => 3,
29                         'backend-class' => 'invalid!',
30                         'backend-ref'   => 'unimported',
31                         'data'          => '',
32                 ],
33         ],
34         'storage' => [
35                 [
36                         'id'   => 1,
37                         'data' => 'inside database',
38                 ],
39         ],
40 ];