chore(tests): UT for ClientRepository

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-01-12 06:27:54 +01:00
parent 799829fed5
commit 6e4f532f2b
19 changed files with 968 additions and 438 deletions

View File

@@ -4,7 +4,7 @@
*
* @author nuxsmin
* @link https://syspass.org
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
* @copyright 2012-2024, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
@@ -25,7 +25,7 @@
namespace SP\Domain\Client\Ports;
use League\Fractal\Resource\Collection;
use SP\DataModel\ClientData;
use SP\Domain\Client\Models\Client;
use SP\Domain\Common\Services\ServiceException;
use SP\Domain\Core\Exceptions\ConstraintException;
use SP\Domain\Core\Exceptions\QueryException;
@@ -45,7 +45,7 @@ interface ClientAdapterInterface
* @throws SPException
* @throws ServiceException
*/
public function includeCustomFields(ClientData $data, CustomFieldServiceInterface $customFieldService): Collection;
public function includeCustomFields(Client $data, CustomFieldServiceInterface $customFieldService): Collection;
public function transform(ClientData $data): array;
public function transform(Client $data): array;
}