chore(tests): UT for UserToUserGroup service

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-04-11 06:36:34 +02:00
parent 465fec9935
commit 2b8b593a41
13 changed files with 562 additions and 196 deletions

View File

@@ -69,6 +69,8 @@ final class UserToUserGroup extends BaseRepository implements UserToUserGroupRep
* @param int $userId
*
* @return QueryResult<T>
* @throws ConstraintException
* @throws QueryException
*/
public function getGroupsForUser(int $userId): QueryResult
{
@@ -158,6 +160,8 @@ final class UserToUserGroup extends BaseRepository implements UserToUserGroupRep
* @param $id int
*
* @return QueryResult<T>
* @throws ConstraintException
* @throws QueryException
*/
public function getById(int $id): QueryResult
{