diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2022-02-24 14:17:43 +0100 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2022-03-21 13:02:46 +0100 |
commit | 73a7ced1fd8cb5c7a0ee74a15890800742d1e455 (patch) | |
tree | a292d5929a0f32a187bd048d756a21fe1cc99434 /apps/dav/tests | |
parent | 84ae0703a3b74c5ce616c7ca690fedebd3a0d3ab (diff) | |
download | nextcloud-server-73a7ced1fd8cb5c7a0ee74a15890800742d1e455.tar.gz nextcloud-server-73a7ced1fd8cb5c7a0ee74a15890800742d1e455.zip |
Fix #31303: Make reminder notification behaviour selectable.
Signed-off-by: Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php b/apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php index 660b1a48fd9..39fbf1c79ff 100644 --- a/apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php +++ b/apps/dav/tests/unit/CalDAV/Reminder/ReminderServiceTest.php @@ -34,6 +34,7 @@ use OCA\DAV\CalDAV\Reminder\INotificationProvider; use OCA\DAV\CalDAV\Reminder\NotificationProviderManager; use OCA\DAV\CalDAV\Reminder\ReminderService; use OCP\AppFramework\Utility\ITimeFactory; +use OCP\IConfig; use OCP\IGroupManager; use OCP\IUser; use OCP\IUserManager; @@ -63,6 +64,9 @@ class ReminderServiceTest extends TestCase { /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */ private $timeFactory; + /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */ + private $config; + /** @var ReminderService */ private $reminderService; @@ -194,6 +198,7 @@ EOD; $this->groupManager = $this->createMock(IGroupManager::class); $this->caldavBackend = $this->createMock(CalDavBackend::class); $this->timeFactory = $this->createMock(ITimeFactory::class); + $this->config = $this->createMock(IConfig::class); $this->caldavBackend->method('getShares')->willReturn([]); @@ -202,7 +207,8 @@ EOD; $this->userManager, $this->groupManager, $this->caldavBackend, - $this->timeFactory); + $this->timeFactory, + $this->config); } public function testOnCalendarObjectDelete():void { |