chore(tests): UT for UserProfile service

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-04-07 08:42:47 +02:00
parent f8ce2f1821
commit 1fd39467fd
19 changed files with 387 additions and 129 deletions

View File

@@ -27,7 +27,7 @@ namespace SP\Modules\Web\Controllers\UserProfile;
use SP\Core\Application;
use SP\Domain\CustomField\Ports\CustomFieldDataService;
use SP\Domain\User\Ports\UserProfileServiceInterface;
use SP\Domain\User\Ports\UserProfileService;
use SP\Modules\Web\Controllers\ControllerBase;
use SP\Modules\Web\Forms\UserProfileForm;
use SP\Mvc\Controller\WebControllerHelper;
@@ -37,14 +37,14 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
abstract class UserProfileSaveBase extends ControllerBase
{
protected UserProfileServiceInterface $userProfileService;
protected UserProfileService $userProfileService;
protected CustomFieldDataService $customFieldService;
protected UserProfileForm $form;
public function __construct(
Application $application,
Application $application,
WebControllerHelper $webControllerHelper,
UserProfileServiceInterface $userProfileService,
UserProfileService $userProfileService,
CustomFieldDataService $customFieldService
) {
parent::__construct($application, $webControllerHelper);