Commit Graph

15 Commits

Author SHA1 Message Date
Rubén D
1c8fb0ea1a refactor: [WIP] Use hexagonal architecture and implement interfaces for services and repositories.
Controllers are being splited into commands to better dependency management.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 08:17:34 +02:00
Rubén D
489684f08c chore: Added MySQL setup class tests.
These tests implement a mocked PDO class that behaves like the original one.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-22 22:17:30 +02:00
Rubén D
8f7a2d9e04 chore: Removed unused variable.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 17:00:40 +02:00
Rubén D
23672a52b2 chore: Check database connection and use interface for mocking.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 07:36:48 +02:00
Rubén D
2796ef578b chore: Refactor Installer's constructor signature.
This will provide connection data when running instead of building time (object wiring).

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 07:11:24 +02:00
Rubén D
7955fa265a chore: Suppress final classes warning on tests.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 06:29:10 +02:00
Rubén D
9b3fea6983 chore: Rework tests for Installer, no more infra dependencies.
This allows to test without any infrastructure dependency. Final classes are sorted out by using the `BypassFinals` library.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 11:27:32 +02:00
Rubén D
e2885bcb76 * [MOD] Update PHPunit to latest version.
* [MOD] Load fixtures using plain SQL files.
* [MOD] Raise PHP version requirements (7.2 will be deprecated within a month).

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-09 12:03:13 +01:00
Rubén D
2318796c00 * [FIX] Fixed wrong behavior when searching for accounts on accounts manager. Thanks to @Weptun for the feedback. Closes #1271
* [ADD] Added missing tests
* [MOD] Code cleanup

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-21 23:12:45 +02:00
nuxsmin
3cecdd8809 * [FIX] Wrong behaviour on Travis CI
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-12-16 19:33:00 +01:00
nuxsmin
5a549532f6 * [MOD] Use config cache file instead of storing it in PHP's session
* [MOD] Unit testing tweaks in order to renew config cache

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-12 00:12:01 +01:00
nuxsmin
59de1c4d00 * [MOD] Improved database checking
* [ADD] Added plugin removal when it isn't available
* [FIX] Minor bugfixes

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-11-01 19:13:41 +01:00
nuxsmin
09520d3cc7 * [FIX] Fixed wrong behavior when downloading PDF file from file management
* [MOD] Improved backup and export management. They are now stored in compressed file format, can be downloaded without direct access through the web browser and it keeps tracking when downloaded.
* [MOD] Updated translations
* [ADD] Unit tests

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
2018-10-28 22:37:57 +01:00
nuxsmin
330e85fc07 * [ADD] Unit testing. Work in progress
* [ADD] Integration tests for API module. Work in progress
* [MOD] Code refactoring
2018-08-27 11:06:07 +02:00
nuxsmin
3c78910569 * [ADD] Unit testing. Work in progress
* [MOD] Code refactoring
2018-08-11 09:46:36 +02:00