mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
chore(tests): UT for ItemPreset
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -28,7 +28,7 @@ namespace SP\Modules\Web\Controllers\UserProfile;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Application;
|
||||
use SP\DataModel\ProfileData;
|
||||
use SP\DataModel\UserProfileData;
|
||||
use SP\DataModel\UserProfileItemWithIdAndName;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
@@ -82,7 +82,7 @@ abstract class UserProfileViewBase extends ControllerBase
|
||||
|
||||
$profile = $profileId
|
||||
? $this->userProfileService->getById($profileId)
|
||||
: new UserProfileData();
|
||||
: new UserProfileItemWithIdAndName();
|
||||
|
||||
$this->view->assign('profile', $profile);
|
||||
$this->view->assign('profileData', $profile->getProfile() ?: new ProfileData());
|
||||
|
||||
Reference in New Issue
Block a user