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

@@ -27,7 +27,7 @@ namespace SP\Modules\Web\Controllers\UserGroup;
use SP\Core\Application;
use SP\Domain\CustomField\Ports\CustomFieldDataService;
use SP\Domain\User\Ports\UserGroupServiceInterface;
use SP\Domain\User\Ports\UserGroupService;
use SP\Modules\Web\Controllers\ControllerBase;
use SP\Modules\Web\Forms\UserGroupForm;
use SP\Mvc\Controller\WebControllerHelper;
@@ -37,14 +37,14 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
abstract class UserGroupSaveBase extends ControllerBase
{
protected UserGroupServiceInterface $userGroupService;
protected UserGroupService $userGroupService;
protected CustomFieldDataService $customFieldService;
protected UserGroupForm $form;
public function __construct(
Application $application,
Application $application,
WebControllerHelper $webControllerHelper,
UserGroupServiceInterface $userGroupService,
UserGroupService $userGroupService,
CustomFieldDataService $customFieldService
) {
parent::__construct($application, $webControllerHelper);