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.
*
@@ -25,7 +25,7 @@
namespace SP\Modules\Web\Controllers\Items;
use SP\Core\Application;
use SP\DataModel\NotificationData;
use SP\DataModel\NotificationItemWithIdAndName;
use SP\Domain\Core\Exceptions\ConstraintException;
use SP\Domain\Core\Exceptions\QueryException;
use SP\Domain\Core\Exceptions\SPException;
@@ -65,7 +65,7 @@ final class NotificationsController extends SimpleControllerBase
{
$notifications = array_map(
static function ($notification) {
/** @@var $notification NotificationData */
/** @@var $notification NotificationItemWithIdAndName */
return sprintf(
'(%s) - %s',
$notification->getComponent(),