mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-08 09:26:57 +01:00
chore: Build mock test for FileBackupService class.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -35,6 +35,7 @@ use SP\Core\Events\EventMessage;
|
||||
use SP\Core\Exceptions\SessionTimeout;
|
||||
use SP\Http\JsonResponse;
|
||||
use SP\Modules\Web\Controllers\Traits\ConfigTrait;
|
||||
use SP\Services\Backup\BackupFiles;
|
||||
use SP\Services\Backup\FileBackupService;
|
||||
use SP\Services\Export\XmlExportService;
|
||||
use SP\Services\Export\XmlVerifyService;
|
||||
@@ -244,7 +245,7 @@ final class ConfigBackupController extends SimpleControllerBase
|
||||
try {
|
||||
SessionContext::close();
|
||||
|
||||
$filePath = FileBackupService::getAppBackupFilename(
|
||||
$filePath = BackupFiles::getAppBackupFilename(
|
||||
BACKUP_PATH,
|
||||
$this->configData->getBackupHash(),
|
||||
true
|
||||
@@ -299,7 +300,7 @@ final class ConfigBackupController extends SimpleControllerBase
|
||||
try {
|
||||
SessionContext::close();
|
||||
|
||||
$filePath = FileBackupService::getDbBackupFilename(
|
||||
$filePath = BackupFiles::getDbBackupFilename(
|
||||
BACKUP_PATH,
|
||||
$this->configData->getBackupHash(),
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user