]> git.mxchange.org Git - friendica.git/commit
Make Storage testable & add tests
authornupplaPhil <admin@philipp.info>
Sun, 5 Jan 2020 00:58:49 +0000 (01:58 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 10 Jan 2020 12:21:57 +0000 (13:21 +0100)
commit08edeae2f996854d0028d0f73a08a1f3ee7741da
treecf52f11b187d1d31b1af57346687057ea9419f51
parenta5895f8623c226e935e2afda42c5d2da16207bcb
Make Storage testable & add tests
- Making StorageManager dynamic (DI::facStorage())
- Making concrete Storage dynamic (DI::storage())
- Add tests for Storage backend and failure handling
- Bumping Level-2/Dice to "dev-master" until new release
- Using Storage-Names instead of Storage-Classes in config (includes migration)
18 files changed:
composer.json
composer.lock
doc/AddonStorageBackend.md
src/Console/Storage.php
src/Core/StorageManager.php
src/DI.php
src/Model/Attach.php
src/Model/Photo.php
src/Model/Storage/Database.php
src/Model/Storage/Filesystem.php
src/Model/Storage/IStorage.php
src/Module/Admin/Site.php
src/Worker/CronJobs.php
static/dependencies.config.php
tests/src/Model/Storage/DatabaseStorageTest.php [new file with mode: 0644]
tests/src/Model/Storage/FilesystemStorageTest.php [new file with mode: 0644]
tests/src/Model/Storage/StorageTest.php [new file with mode: 0644]
update.php