mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-24 09:07:18 +01:00
chore: Create AccountAdapter tests
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -30,7 +30,7 @@ use League\Fractal\Resource\Item;
|
||||
use SP\Core\Acl\ActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\DataModel\Dto\AccountDetailsResponse;
|
||||
use SP\DataModel\Dto\AccountEnrichedDto;
|
||||
use SP\Domain\Api\Services\ApiResponse;
|
||||
use SP\Util\Util;
|
||||
|
||||
@@ -59,7 +59,7 @@ final class ViewController extends AccountBase
|
||||
|
||||
$this->accountService->incrementViewCounter($id);
|
||||
|
||||
$accountResponse = new AccountDetailsResponse($id, $accountDetails);
|
||||
$accountResponse = new AccountEnrichedDto($accountDetails);
|
||||
|
||||
$this->accountService
|
||||
->withUsersById($accountResponse)
|
||||
@@ -91,4 +91,4 @@ final class ViewController extends AccountBase
|
||||
processException($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user