chore: Build mock test for FileBackupService class.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-05-19 08:25:16 +02:00
parent f22145b389
commit f0e5be2c52
13 changed files with 402 additions and 249 deletions

View File

@@ -31,6 +31,7 @@ use SP\Core\Events\EventMessage;
use SP\Core\Exceptions\InvalidClassException;
use SP\Modules\Api\Controllers\Help\ConfigHelp;
use SP\Services\Api\ApiResponse;
use SP\Services\Backup\BackupFiles;
use SP\Services\Backup\FileBackupService;
use SP\Services\Export\XmlExportService;
@@ -66,12 +67,12 @@ final class ConfigController extends ControllerBase
$backupFiles = [
'files' => [
'app' => FileBackupService::getAppBackupFilename(
'app' => BackupFiles::getAppBackupFilename(
$path,
$backupService->getHash(),
true
),
'db' => FileBackupService::getDbBackupFilename(
'db' => BackupFiles::getDbBackupFilename(
$path,
$backupService->getHash(),
true