mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 19:06:57 +01:00
chore(tests): UT for CsvImport service
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2024, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -33,9 +33,10 @@ use SP\Core\Events\EventMessage;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Acl\UnauthorizedPageException;
|
||||
use SP\Domain\Core\Exceptions\SessionTimeout;
|
||||
use SP\Domain\Import\Dtos\ImportParamsDto;
|
||||
use SP\Domain\Import\Ports\ImportParams;
|
||||
use SP\Domain\Import\Ports\ImportServiceInterface;
|
||||
use SP\Domain\Import\Services\FileImport;
|
||||
use SP\Domain\Import\Services\ImportParams;
|
||||
use SP\Http\JsonMessage;
|
||||
use SP\Modules\Web\Controllers\SimpleControllerBase;
|
||||
use SP\Modules\Web\Controllers\Traits\JsonTrait;
|
||||
@@ -112,11 +113,11 @@ final class ImportController extends SimpleControllerBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ImportParams
|
||||
* @return \SP\Domain\Import\Dtos\ImportParams
|
||||
*/
|
||||
private function getImportParams(): ImportParams
|
||||
{
|
||||
$importParams = new ImportParams();
|
||||
$importParams = new ImportParamsDto();
|
||||
$importParams->setDefaultUser(
|
||||
$this->request->analyzeInt('import_defaultuser', $this->session->getUserData()->getId())
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user