mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 00:24:08 +01:00
chore: Build mock test for FileBackupService class.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user