chore(tests): UT for UserGroup service

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-04-01 16:32:44 +02:00
parent 22f7c6b143
commit 963b4fa023
24 changed files with 569 additions and 178 deletions

View File

@@ -34,7 +34,7 @@ use SP\Domain\Core\Exceptions\QueryException;
use SP\Domain\Core\Exceptions\SPException;
use SP\Domain\CustomField\Ports\CustomFieldDataService;
use SP\Domain\User\Models\User;
use SP\Domain\User\Ports\UserGroupServiceInterface;
use SP\Domain\User\Ports\UserGroupService;
use SP\Domain\User\Ports\UserProfileServiceInterface;
use SP\Domain\User\Ports\UserServiceInterface;
use SP\Modules\Web\Controllers\ControllerBase;
@@ -49,16 +49,16 @@ abstract class UserViewBase extends ControllerBase
{
use ItemTrait;
protected UserServiceInterface $userService;
private UserGroupServiceInterface $userGroupService;
protected UserServiceInterface $userService;
private UserGroupService $userGroupService;
private UserProfileServiceInterface $userProfileService;
private CustomFieldDataService $customFieldService;
public function __construct(
Application $application,
WebControllerHelper $webControllerHelper,
UserServiceInterface $userService,
UserGroupServiceInterface $userGroupService,
Application $application,
WebControllerHelper $webControllerHelper,
UserServiceInterface $userService,
UserGroupService $userGroupService,
UserProfileServiceInterface $userProfileService,
CustomFieldDataService $customFieldService
) {