summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-01-16 21:15:00 -0300
committerVitor Mattos <vitor@php.rio>2023-01-16 21:32:29 -0300
commit2895a929af1f8ab463249a914f1720d69a2ab0ae (patch)
tree0dbf8b4249e2723c95052a901fd00b81686d1090 /tests
parentebd5340e895ae41bf8f4c7f9be15392cebe997c5 (diff)
Add dismiss recording notification
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Notification/NotifierTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/php/Notification/NotifierTest.php b/tests/php/Notification/NotifierTest.php
index 058de1905..f9f7e8fe7 100644
--- a/tests/php/Notification/NotifierTest.php
+++ b/tests/php/Notification/NotifierTest.php
@@ -37,6 +37,7 @@ 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;
@@ -53,6 +54,8 @@ 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 */
@@ -87,6 +90,7 @@ 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);
@@ -104,6 +108,7 @@ class NotifierTest extends TestCase {
$this->notifier = new Notifier(
$this->lFactory,
+ $this->db,
$this->url,
$this->config,
$this->userManager,