mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-23 00:36:52 +01:00
chore(tests): UT for PluginBase service
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -27,7 +27,7 @@ namespace SP\Modules\Api\Controllers\Account;
|
||||
|
||||
use Klein\Klein;
|
||||
use SP\Core\Application;
|
||||
use SP\Domain\Account\Adapters\AccountAdapterInterface;
|
||||
use SP\Domain\Account\Ports\AccountAdapter;
|
||||
use SP\Domain\Account\Ports\AccountPresetService;
|
||||
use SP\Domain\Account\Ports\AccountService;
|
||||
use SP\Domain\Api\Ports\ApiService;
|
||||
@@ -45,7 +45,7 @@ abstract class AccountBase extends ControllerBase
|
||||
protected AccountPresetService $accountPresetService;
|
||||
protected AccountService $accountService;
|
||||
protected CustomFieldDataService $customFieldService;
|
||||
protected AccountAdapterInterface $accountAdapter;
|
||||
protected AccountAdapter $accountAdapter;
|
||||
|
||||
/**
|
||||
* @throws InvalidClassException
|
||||
@@ -58,7 +58,7 @@ abstract class AccountBase extends ControllerBase
|
||||
AccountPresetService $accountPresetService,
|
||||
AccountService $accountService,
|
||||
CustomFieldDataService $customFieldService,
|
||||
AccountAdapterInterface $accountAdapter
|
||||
AccountAdapter $accountAdapter
|
||||
) {
|
||||
parent::__construct($application, $router, $apiService, $acl);
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
use Klein\Klein;
|
||||
use SP\Core\Application;
|
||||
use SP\Domain\Api\Ports\ApiService;
|
||||
use SP\Domain\Client\Ports\ClientAdapterInterface;
|
||||
use SP\Domain\Client\Ports\ClientAdapter;
|
||||
use SP\Domain\Client\Ports\ClientService;
|
||||
use SP\Domain\Core\Acl\AclInterface;
|
||||
use SP\Domain\Core\Exceptions\InvalidClassException;
|
||||
@@ -41,7 +41,7 @@ use SP\Modules\Api\Controllers\Help\ClientHelp;
|
||||
abstract class ClientBase extends ControllerBase
|
||||
{
|
||||
protected ClientService $clientService;
|
||||
protected ClientAdapterInterface $clientAdapter;
|
||||
protected ClientAdapter $clientAdapter;
|
||||
|
||||
/**
|
||||
* @throws InvalidClassException
|
||||
@@ -52,7 +52,7 @@ abstract class ClientBase extends ControllerBase
|
||||
ApiService $apiService,
|
||||
AclInterface $acl,
|
||||
ClientService $clientService,
|
||||
ClientAdapterInterface $clientAdapter
|
||||
ClientAdapter $clientAdapter
|
||||
) {
|
||||
parent::__construct($application, $router, $apiService, $acl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user