Enable caldav push notifications by default

Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
pull/40103/head
hamza221 2023-08-29 16:16:57 +07:00
parent e8a69ac565
commit 823908b017
4 changed files with 5 additions and 5 deletions

@ -82,7 +82,7 @@ class PushProvider extends AbstractProvider {
?string $calendarDisplayName,
array $principalEmailAddresses,
array $users = []):void {
if ($this->config->getAppValue('dav', 'sendEventRemindersPush', 'no') !== 'yes') {
if ($this->config->getAppValue('dav', 'sendEventRemindersPush', 'yes') !== 'yes') {
return;
}

@ -47,7 +47,7 @@ class CalDAVSettings implements IDelegatedSettings {
'generateBirthdayCalendar' => 'yes',
'sendEventReminders' => 'yes',
'sendEventRemindersToSharedUsers' => 'yes',
'sendEventRemindersPush' => 'no',
'sendEventRemindersPush' => 'yes',
];
/**

@ -66,7 +66,7 @@ class PushProviderTest extends AbstractNotificationProviderTest {
public function testNotSend(): void {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'sendEventRemindersPush', 'no')
->with('dav', 'sendEventRemindersPush', 'yes')
->willReturn('no');
$this->manager->expects($this->never())
@ -92,7 +92,7 @@ class PushProviderTest extends AbstractNotificationProviderTest {
public function testSend(): void {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'sendEventRemindersPush', 'no')
->with('dav', 'sendEventRemindersPush', 'yes')
->willReturn('yes');
$user1 = $this->createMock(IUser::class);

@ -62,7 +62,7 @@ class CalDAVSettingsTest extends TestCase {
['dav', 'generateBirthdayCalendar', 'yes'],
['dav', 'sendEventReminders', 'yes'],
['dav', 'sendEventRemindersToSharedUsers', 'yes'],
['dav', 'sendEventRemindersPush', 'no'],
['dav', 'sendEventRemindersPush', 'yes'],
)
->will($this->onConsecutiveCalls('yes', 'no', 'yes', 'yes', 'yes'));
$this->urlGenerator