chore(tests): UT for ItemPreset

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-03-09 12:48:40 +01:00
parent 1b4de778ab
commit 2e4eca1c75
107 changed files with 1577 additions and 945 deletions

View File

@@ -4,7 +4,7 @@
*
* @author nuxsmin
* @link https://syspass.org
* @copyright 2012-2023, Rubén Domínguez nuxsmin@$syspass.org
* @copyright 2012-2024, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
@@ -27,7 +27,7 @@ namespace SP\Modules\Web\Controllers\Notification;
use SP\Core\Acl\Acl;
use SP\Core\Application;
use SP\DataModel\NotificationData;
use SP\DataModel\NotificationItemWithIdAndName;
use SP\Domain\Core\Acl\AclActionsInterface;
use SP\Domain\Core\Exceptions\ConstraintException;
use SP\Domain\Core\Exceptions\QueryException;
@@ -75,7 +75,7 @@ abstract class NotificationViewBase extends ControllerBase
$notification = $notificationId
? $this->notificationService->getById($notificationId)
: new NotificationData();
: new NotificationItemWithIdAndName();
$this->view->assign('notification', $notification);