diff options
author | Vitor Mattos <vitor@php.rio> | 2023-01-17 15:24:18 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-01-17 15:24:18 -0300 |
commit | 4cc5f43b563118da0f7eed0b7f43e36760f2b149 (patch) | |
tree | 3102a2d139f19a4bc9b855358c287edb7753fa42 /tests | |
parent | 13eff2db46dc4312811795750ca2393a63d49cb0 (diff) |
Move dismiss stored notification to specific endpoint
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Notification/NotifierTest.php | 5 | ||||
-rw-r--r-- | tests/php/Service/RecordingServiceTest.php | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/php/Notification/NotifierTest.php b/tests/php/Notification/NotifierTest.php index f9f7e8fe7..058de1905 100644 --- a/tests/php/Notification/NotifierTest.php +++ b/tests/php/Notification/NotifierTest.php @@ -37,7 +37,6 @@ use OCA\Talk\Room; use OCA\Talk\Service\ParticipantService; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Comments\IComment; -use OCP\IDBConnection; use OCP\IL10N; use OCP\IURLGenerator; use OCP\IUser; @@ -54,8 +53,6 @@ use Test\TestCase; class NotifierTest extends TestCase { /** @var IFactory|MockObject */ protected $lFactory; - /** @var IFactory|MockObject */ - protected $db; /** @var IURLGenerator|MockObject */ protected $url; /** @var Config|MockObject */ @@ -90,7 +87,6 @@ class NotifierTest extends TestCase { parent::setUp(); $this->lFactory = $this->createMock(IFactory::class); - $this->db = $this->createMock(IDBConnection::class); $this->url = $this->createMock(IURLGenerator::class); $this->config = $this->createMock(Config::class); $this->userManager = $this->createMock(IUserManager::class); @@ -108,7 +104,6 @@ class NotifierTest extends TestCase { $this->notifier = new Notifier( $this->lFactory, - $this->db, $this->url, $this->config, $this->userManager, diff --git a/tests/php/Service/RecordingServiceTest.php b/tests/php/Service/RecordingServiceTest.php index 97d5076ee..c60e55deb 100644 --- a/tests/php/Service/RecordingServiceTest.php +++ b/tests/php/Service/RecordingServiceTest.php @@ -36,6 +36,7 @@ function is_uploaded_file($filename) { namespace OCA\Talk\Tests\php\Service; use OCA\Talk\Config; +use OCA\Talk\Manager; use OCA\Talk\Service\ParticipantService; use OCA\Talk\Service\RecordingService; use OCA\Talk\Service\RoomService; @@ -57,6 +58,8 @@ class RecordingServiceTest extends TestCase { private $config; /** @var IManager|MockObject */ private $notificationManager; + /** @var Manager|MockObject */ + private $roomManager; /** @var ITimeFactory|MockObject */ private $timeFactory; /** @var RoomService|MockObject */ @@ -71,6 +74,7 @@ class RecordingServiceTest extends TestCase { $this->participantService = $this->createMock(ParticipantService::class); $this->rootFolder = $this->createMock(IRootFolder::class); $this->notificationManager = $this->createMock(IManager::class); + $this->roomManager = $this->createMock(Manager::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->config = $this->createMock(Config::class); $this->roomService = $this->createMock(RoomService::class); @@ -80,6 +84,7 @@ class RecordingServiceTest extends TestCase { $this->participantService, $this->rootFolder, $this->notificationManager, + $this->roomManager, $this->timeFactory, $this->config, $this->roomService |