mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 10:56:58 +01:00
chore(tests): UT for ItemPreset
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2022, 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\Domain\Notification\Ports;
|
||||
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\DataModel\NotificationData;
|
||||
use SP\DataModel\NotificationItemWithIdAndName;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
use SP\Domain\Core\Exceptions\QueryException;
|
||||
@@ -45,7 +45,7 @@ interface NotificationServiceInterface
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
public function create(NotificationData $itemData): int;
|
||||
public function create(NotificationItemWithIdAndName $itemData): int;
|
||||
|
||||
/**
|
||||
* Updates an item
|
||||
@@ -53,14 +53,14 @@ interface NotificationServiceInterface
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
public function update(NotificationData $itemData): int;
|
||||
public function update(NotificationItemWithIdAndName $itemData): int;
|
||||
|
||||
/**
|
||||
* Devolver los elementos con los ids especificados
|
||||
*
|
||||
* @param int[] $ids
|
||||
*
|
||||
* @return NotificationData[]
|
||||
* @return NotificationItemWithIdAndName[]
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
@@ -113,12 +113,12 @@ interface NotificationServiceInterface
|
||||
* @throws QueryException
|
||||
* @throws NoSuchItemException
|
||||
*/
|
||||
public function getById(int $id): NotificationData;
|
||||
public function getById(int $id): NotificationItemWithIdAndName;
|
||||
|
||||
/**
|
||||
* Returns all the items
|
||||
*
|
||||
* @return NotificationData[]
|
||||
* @return NotificationItemWithIdAndName[]
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
@@ -136,21 +136,21 @@ interface NotificationServiceInterface
|
||||
/**
|
||||
* Devolver las notificaciones de un usuario para una fecha y componente determinados
|
||||
*
|
||||
* @return NotificationData[]
|
||||
* @return NotificationItemWithIdAndName[]
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
public function getForUserIdByDate(string $component, int $id): array;
|
||||
|
||||
/**
|
||||
* @return NotificationData[]
|
||||
* @return NotificationItemWithIdAndName[]
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
public function getAllForUserId(int $id): array;
|
||||
|
||||
/**
|
||||
* @return NotificationData[]
|
||||
* @return NotificationItemWithIdAndName[]
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user