chore: Create AccountAdapter tests

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-26 13:04:38 +01:00
parent f9d16dd76f
commit 07437ffda0
25 changed files with 535 additions and 222 deletions

View File

@@ -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);
}
}
}
}