mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
- Fixing SystemResource
- Adding tests for StorageManager - Updating doc
This commit is contained in:
parent
cc501439af
commit
dbd5b5bb6e
12 changed files with 547 additions and 59 deletions
40
tests/datasets/storage/database.fixture.php
Normal file
40
tests/datasets/storage/database.fixture.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'photo' => [
|
||||
// move from data-attribute to storage backend
|
||||
[
|
||||
'id' => 1,
|
||||
'backend-class' => null,
|
||||
'backend-ref' => 'f0c0d0i2',
|
||||
'data' => 'without class',
|
||||
],
|
||||
// move from storage-backend to maybe filesystem backend, skip at database backend
|
||||
[
|
||||
'id' => 2,
|
||||
'backend-class' => 'Database',
|
||||
'backend-ref' => 1,
|
||||
'data' => '',
|
||||
],
|
||||
// move data if invalid storage
|
||||
[
|
||||
'id' => 3,
|
||||
'backend-class' => 'invalid!',
|
||||
'backend-ref' => 'unimported',
|
||||
'data' => 'invalid data moved',
|
||||
],
|
||||
// skip everytime because of invalid storage and no data
|
||||
[
|
||||
'id' => 3,
|
||||
'backend-class' => 'invalid!',
|
||||
'backend-ref' => 'unimported',
|
||||
'data' => '',
|
||||
],
|
||||
],
|
||||
'storage' => [
|
||||
[
|
||||
'id' => 1,
|
||||
'data' => 'inside database',
|
||||
],
|
||||
],
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue