chore(tests): UT for Notification service

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-03-10 01:15:53 +01:00
parent 5103fabf25
commit db73e69dba
8 changed files with 638 additions and 118 deletions

View File

@@ -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.
*
@@ -26,7 +26,7 @@ namespace SP\Modules\Web\Controllers\Notification;
use SP\Core\Application;
use SP\Domain\Notification\Ports\NotificationServiceInterface;
use SP\Domain\Notification\Ports\NotificationService;
use SP\Modules\Web\Controllers\ControllerBase;
use SP\Modules\Web\Forms\NotificationForm;
use SP\Mvc\Controller\WebControllerHelper;
@@ -36,13 +36,13 @@ use SP\Mvc\Controller\WebControllerHelper;
*/
abstract class NotificationSaveBase extends ControllerBase
{
protected NotificationServiceInterface $notificationService;
protected NotificationForm $form;
protected NotificationService $notificationService;
protected NotificationForm $form;
public function __construct(
Application $application,
WebControllerHelper $webControllerHelper,
NotificationServiceInterface $notificationService
NotificationService $notificationService
) {
parent::__construct($application, $webControllerHelper);